debian-mirror-gitlab/app/views/shared/groups/_group.html.haml

35 lines
1.1 KiB
Text
Raw Normal View History

2015-09-25 12:07:36 +05:30
- group_member = local_assigns[:group_member]
2016-04-02 18:10:28 +05:30
- css_class = '' unless local_assigns[:css_class]
- css_class += " no-description" if group.description.blank?
%li.group-row{ class: css_class }
2015-09-25 12:07:36 +05:30
- if group_member
.controls.hidden-xs
- if can?(current_user, :admin_group, group)
= link_to edit_group_path(group), class: "btn-sm btn btn-grouped" do
%i.fa.fa-cogs
= link_to leave_group_group_members_path(group), data: { confirm: leave_group_message(group.name) }, method: :delete, class: "btn-sm btn btn-grouped", title: 'Leave this group' do
%i.fa.fa-sign-out
2016-04-02 18:10:28 +05:30
.stats
%span
= icon('home')
= number_with_delimiter(group.projects.count)
%span
= icon('users')
= number_with_delimiter(group.users.count)
= image_tag group_icon(group), class: "avatar s40 hidden-xs"
2015-09-25 12:07:36 +05:30
= link_to group, class: 'group-name' do
%span.item-title= group.name
2015-09-25 12:07:36 +05:30
- if group_member
as
%span #{group_member.human_access}
2016-04-02 18:10:28 +05:30
- if group.description.present?
.light
= markdown(group.description, pipeline: :description)