Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gitlab-ce
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
1
Merge Requests
1
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
gitlab-ce
Commits
ded80cc2
Commit
ded80cc2
authored
Mar 17, 2022
by
Gary Holtz
Committed by
Andrew Fontaine
Mar 28, 2022
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Moving method/correcting error
parent
83511120
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
2 deletions
+4
-2
app/helpers/projects_helper.rb
app/helpers/projects_helper.rb
+3
-1
app/views/shared/projects/_list.html.haml
app/views/shared/projects/_list.html.haml
+1
-1
No files found.
app/helpers/projects_helper.rb
View file @
ded80cc2
...
@@ -635,7 +635,9 @@ module ProjectsHelper
...
@@ -635,7 +635,9 @@ module ProjectsHelper
end
end
def
can_show_last_commit_in_list?
(
project
)
def
can_show_last_commit_in_list?
(
project
)
can?
(
current_user
,
:read_cross_project
)
&&
project
.
commit
can?
(
current_user
,
:read_cross_project
)
&&
can?
(
current_user
,
:read_commit_status
,
project
)
&&
project
.
commit
end
end
def
pages_https_only_disabled?
def
pages_https_only_disabled?
...
...
app/views/shared/projects/_list.html.haml
View file @
ded80cc2
...
@@ -5,7 +5,7 @@
...
@@ -5,7 +5,7 @@
-
pipeline_status
=
true
unless
local_assigns
[
:pipeline_status
]
==
false
-
pipeline_status
=
true
unless
local_assigns
[
:pipeline_status
]
==
false
-
skip_namespace
=
false
unless
local_assigns
[
:skip_namespace
]
==
true
-
skip_namespace
=
false
unless
local_assigns
[
:skip_namespace
]
==
true
-
user
=
local_assigns
[
:user
]
-
user
=
local_assigns
[
:user
]
-
show_last_commit_as_description
=
false
unless
local_assigns
[
:show_last_commit_as_description
]
==
true
&&
can_show_last_commit_in_list?
(
project
)
-
show_last_commit_as_description
=
false
unless
local_assigns
[
:show_last_commit_as_description
]
==
true
-
remote
=
false
unless
local_assigns
[
:remote
]
==
true
-
remote
=
false
unless
local_assigns
[
:remote
]
==
true
-
skip_pagination
=
false
unless
local_assigns
[
:skip_pagination
]
==
true
-
skip_pagination
=
false
unless
local_assigns
[
:skip_pagination
]
==
true
-
compact_mode
=
false
unless
local_assigns
[
:compact_mode
]
==
true
-
compact_mode
=
false
unless
local_assigns
[
:compact_mode
]
==
true
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment