Commit c218e0a1 authored by Jose Ivan Vargas's avatar Jose Ivan Vargas Committed by Peter Hegman

Migrate badges in Admin -> Groups -> Show

To be Pajamas compliant

Changelog: changed
parent 05b01676
...@@ -70,15 +70,13 @@ ...@@ -70,15 +70,13 @@
.card .card
.card-header .card-header
= _('Projects') = _('Projects')
%span.badge.badge-pill = gl_badge_tag @group.projects.count
#{@group.projects.count}
%ul.content-list %ul.content-list
- @projects.each do |project| - @projects.each do |project|
%li %li
%strong %strong
= link_to project.full_name, [:admin, project] = link_to project.full_name, [:admin, project]
%span.badge.badge-pill = gl_badge_tag storage_counter(project.statistics.storage_size)
= storage_counter(project.statistics.storage_size)
%span.float-right.light %span.float-right.light
%span.monospace= project.full_path + '.git' %span.monospace= project.full_path + '.git'
- unless @projects.size < Kaminari.config.default_per_page - unless @projects.size < Kaminari.config.default_per_page
...@@ -90,15 +88,13 @@ ...@@ -90,15 +88,13 @@
.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 = gl_badge_tag shared_projects.size
#{shared_projects.size}
%ul.content-list %ul.content-list
- shared_projects.each do |project| - shared_projects.each do |project|
%li %li
%strong %strong
= link_to project.full_name, [:admin, project] = link_to project.full_name, [:admin, project]
%span.badge.badge-pill = gl_badge_tag storage_counter(project.statistics.storage_size)
= storage_counter(project.statistics.storage_size)
%span.float-right.light %span.float-right.light
%span.monospace= project.full_path + '.git' %span.monospace= project.full_path + '.git'
...@@ -126,7 +122,7 @@ ...@@ -126,7 +122,7 @@
.card .card
.card-header .card-header
= html_escape(_("%{group_name} group members")) % { group_name: "<strong>#{html_escape(@group.name)}</strong>".html_safe } = html_escape(_("%{group_name} group members")) % { group_name: "<strong>#{html_escape(@group.name)}</strong>".html_safe }
%span.badge.badge-pill= @group.users_count = gl_badge_tag @group.users_count
= render 'shared/members/manage_access_button', path: group_group_members_path(@group) = render 'shared/members/manage_access_button', path: group_group_members_path(@group)
%ul.content-list.group-users-list.content-list.members-list %ul.content-list.group-users-list.content-list.members-list
= render partial: 'shared/members/member', = render partial: 'shared/members/member',
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment