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
761b2ec7
Commit
761b2ec7
authored
Mar 08, 2021
by
Simon Stieger
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Hide MR count and link in project list where MRs are disabled
parent
1e7ea614
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
3 deletions
+8
-3
app/views/shared/projects/_list.html.haml
app/views/shared/projects/_list.html.haml
+3
-3
changelogs/unreleased/hide-mr-counts-in-project-list-where-mrs-disabled.yml
...sed/hide-mr-counts-in-project-list-where-mrs-disabled.yml
+5
-0
No files found.
app/views/shared/projects/_list.html.haml
View file @
761b2ec7
...
...
@@ -3,7 +3,6 @@
-
use_creator_avatar
=
false
unless
local_assigns
[
:use_creator_avatar
]
==
true
-
stars
=
true
unless
local_assigns
[
:stars
]
==
false
-
forks
=
true
unless
local_assigns
[
:forks
]
==
false
-
merge_requests
=
true
unless
local_assigns
[
:merge_requests
]
==
false
-
pipeline_status
=
true
unless
local_assigns
[
:pipeline_status
]
==
false
-
skip_namespace
=
false
unless
local_assigns
[
:skip_namespace
]
==
true
-
user
=
local_assigns
[
:user
]
...
...
@@ -39,8 +38,9 @@
-
css_class
=
(
i
>=
projects_limit
)
||
project
.
pending_delete?
?
'hide'
:
nil
=
render
"shared/projects/project"
,
project:
project
,
skip_namespace:
skip_namespace
,
avatar:
avatar
,
stars:
stars
,
css_class:
css_class
,
use_creator_avatar:
use_creator_avatar
,
forks:
forks
,
show_last_commit_as_description:
show_last_commit_as_description
,
user:
user
,
merge_requests:
merge_requests
,
issues:
project
.
issues_enabled?
,
pipeline_status:
pipeline_status
,
compact_mode:
compact_mode
forks:
forks
,
show_last_commit_as_description:
show_last_commit_as_description
,
user:
user
,
merge_requests:
project
.
merge_requests_enabled?
,
issues:
project
.
issues_enabled?
,
pipeline_status:
pipeline_status
,
compact_mode:
compact_mode
=
paginate_collection
(
projects
,
remote:
remote
)
unless
skip_pagination
-
else
-
if
@contributed_projects
...
...
changelogs/unreleased/hide-mr-counts-in-project-list-where-mrs-disabled.yml
0 → 100644
View file @
761b2ec7
---
title
:
Hide MR count and link in project list where MRs are disabled
merge_request
:
!56432
author
:
Simon Stieger @sim0
type
:
fixed
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