2015-08-26 17:41:56 -04:00
|
|
|
- group_member = local_assigns[:group_member]
|
2017-01-24 10:32:34 -05:00
|
|
|
- full_name = true unless local_assigns[:full_name] == false
|
2017-03-15 11:02:48 -04:00
|
|
|
- group_name = full_name ? group.full_name : group.name
|
2016-02-02 17:31:46 -05:00
|
|
|
- css_class = '' unless local_assigns[:css_class]
|
|
|
|
- css_class += " no-description" if group.description.blank?
|
|
|
|
|
|
|
|
%li.group-row{ class: css_class }
|
2015-08-26 17:41:56 -04:00
|
|
|
- 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)
|
2016-06-08 13:44:39 -04:00
|
|
|
= link_to edit_group_path(group), class: "btn" do
|
|
|
|
= icon('cogs')
|
2015-08-26 17:41:56 -04:00
|
|
|
|
2016-04-18 12:53:32 -04:00
|
|
|
= link_to leave_group_group_members_path(group), data: { confirm: leave_confirmation_message(group) }, method: :delete, class: "btn", title: 'Leave this group' do
|
2016-03-18 14:02:08 -04:00
|
|
|
= icon('sign-out')
|
2015-08-26 17:41:56 -04:00
|
|
|
|
2016-02-02 17:31:46 -05:00
|
|
|
.stats
|
|
|
|
%span
|
2016-03-17 06:37:15 -04:00
|
|
|
= icon('bookmark')
|
2017-03-24 16:00:46 -04:00
|
|
|
= number_with_delimiter(group.projects.non_archived.count)
|
2016-02-02 17:31:46 -05:00
|
|
|
|
|
|
|
%span
|
|
|
|
= icon('users')
|
2016-02-02 18:07:11 -05:00
|
|
|
= number_with_delimiter(group.users.count)
|
2016-02-02 17:31:46 -05:00
|
|
|
|
2016-12-26 05:47:16 -05:00
|
|
|
%span.visibility-icon.has-tooltip{ data: { container: 'body', placement: 'left' }, title: visibility_icon_description(group) }
|
2016-03-03 14:52:38 -05:00
|
|
|
= visibility_level_icon(group.visibility_level, fw: false)
|
|
|
|
|
2016-11-03 10:26:22 -04:00
|
|
|
.avatar-container.s40
|
2016-10-31 15:14:05 -04:00
|
|
|
= image_tag group_icon(group), class: "avatar s40 hidden-xs"
|
2016-03-18 14:02:08 -04:00
|
|
|
.title
|
2017-03-15 11:02:48 -04:00
|
|
|
= link_to group_name, group, class: 'group-name'
|
2015-08-26 17:41:56 -04:00
|
|
|
|
2016-03-18 14:02:08 -04:00
|
|
|
- if group_member
|
|
|
|
as
|
2017-01-13 11:07:21 -05:00
|
|
|
%span= group_member.human_access
|
2015-08-26 17:41:56 -04:00
|
|
|
|
2016-02-02 17:31:46 -05:00
|
|
|
- if group.description.present?
|
2016-02-26 09:02:34 -05:00
|
|
|
.description
|
2016-10-06 18:01:42 -04:00
|
|
|
= markdown_field(group, :description)
|