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
270a8761
Commit
270a8761
authored
Mar 10, 2021
by
Simon Stieger
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Hide fork count and link in project list where forks are disabled
parent
6dcc1acd
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
2 deletions
+6
-2
app/views/shared/projects/_list.html.haml
app/views/shared/projects/_list.html.haml
+1
-2
changelogs/unreleased/hide-fork-counts-in-project-list-where-forks-disabled.yml
...hide-fork-counts-in-project-list-where-forks-disabled.yml
+5
-0
No files found.
app/views/shared/projects/_list.html.haml
View file @
270a8761
...
...
@@ -2,7 +2,6 @@
-
avatar
=
true
unless
local_assigns
[
:avatar
]
==
false
-
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
-
pipeline_status
=
true
unless
local_assigns
[
:pipeline_status
]
==
false
-
skip_namespace
=
false
unless
local_assigns
[
:skip_namespace
]
==
true
-
user
=
local_assigns
[
:user
]
...
...
@@ -38,7 +37,7 @@
-
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
,
forks:
project
.
forking_enabled?
,
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
...
...
changelogs/unreleased/hide-fork-counts-in-project-list-where-forks-disabled.yml
0 → 100644
View file @
270a8761
---
title
:
Hide fork count and link in project list where forks are disabled
merge_request
:
56520
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