2015-08-26 17:41:56 -04:00
|
|
|
- group_member = local_assigns[:group_member]
|
|
|
|
%li
|
|
|
|
- if group_member
|
2015-09-03 12:48:35 -04:00
|
|
|
.controls.hidden-xs
|
2015-08-26 17:41:56 -04:00
|
|
|
- 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
|
|
|
|
|
2015-09-04 05:17:25 -04:00
|
|
|
= image_tag group_icon(group), class: "avatar s46 hidden-xs"
|
2016-01-15 05:10:55 -05:00
|
|
|
= link_to group, class: 'group-name' do
|
2016-01-15 09:46:01 -05:00
|
|
|
%span.item-title= group.name
|
2015-08-26 17:41:56 -04:00
|
|
|
|
|
|
|
- if group_member
|
|
|
|
as
|
2015-09-03 12:19:31 -04:00
|
|
|
%span #{group_member.human_access}
|
2015-08-26 17:41:56 -04:00
|
|
|
|
|
|
|
%div.light
|
|
|
|
#{pluralize(group.projects.count, "project")}, #{pluralize(group.users.count, "user")}
|