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
65febfa1
Commit
65febfa1
authored
4 years ago
by
Małgorzata Ksionek
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Refactor view to make less db calls
parent
753c0358
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
3 deletions
+4
-3
app/views/admin/groups/show.html.haml
app/views/admin/groups/show.html.haml
+4
-3
No files found.
app/views/admin/groups/show.html.haml
View file @
65febfa1
...
@@ -78,14 +78,15 @@
...
@@ -78,14 +78,15 @@
.card-footer
.card-footer
=
paginate
@projects
,
param_name:
'projects_page'
,
theme:
'gitlab'
=
paginate
@projects
,
param_name:
'projects_page'
,
theme:
'gitlab'
-
if
@group
.
shared_projects
.
any?
-
shared_projects
=
@group
.
shared_projects
.
sort_by
(
&
:name
)
-
unless
shared_projects
.
empty?
.card
.card
.card-header
.card-header
=
_
(
'Projects shared with %{group_name}'
)
%
{
group_name:
@group
.
name
}
=
_
(
'Projects shared with %{group_name}'
)
%
{
group_name:
@group
.
name
}
%span
.badge.badge-pill
%span
.badge.badge-pill
#{
@group
.
shared_projects
.
count
}
#{
shared_projects
.
size
}
%ul
.content-list
%ul
.content-list
-
@group
.
shared_projects
.
sort_by
(
&
:name
)
.
each
do
|
project
|
-
shared_projects
.
each
do
|
project
|
%li
%li
%strong
%strong
=
link_to
project
.
full_name
,
[
:admin
,
project
.
namespace
.
becomes
(
Namespace
),
project
]
=
link_to
project
.
full_name
,
[
:admin
,
project
.
namespace
.
becomes
(
Namespace
),
project
]
...
...
This diff is collapsed.
Click to expand it.
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