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)
|
2016-06-16 23:09:34 +05:30
|
|
|
= link_to edit_group_path(group), class: "btn" do
|
|
|
|
= icon('cogs')
|
2015-09-25 12:07:36 +05:30
|
|
|
|
2016-06-16 23:09:34 +05:30
|
|
|
= link_to leave_group_group_members_path(group), data: { confirm: leave_confirmation_message(group) }, method: :delete, class: "btn", title: 'Leave this group' do
|
2016-06-02 11:05:42 +05:30
|
|
|
= icon('sign-out')
|
2015-09-25 12:07:36 +05:30
|
|
|
|
2016-04-02 18:10:28 +05:30
|
|
|
.stats
|
|
|
|
%span
|
2016-06-02 11:05:42 +05:30
|
|
|
= icon('bookmark')
|
2016-04-02 18:10:28 +05:30
|
|
|
= number_with_delimiter(group.projects.count)
|
|
|
|
|
|
|
|
%span
|
|
|
|
= icon('users')
|
|
|
|
= number_with_delimiter(group.users.count)
|
|
|
|
|
2016-06-02 11:05:42 +05:30
|
|
|
%span.visibility-icon.has-tooltip{data: { container: 'body', placement: 'left' }, title: visibility_icon_description(group)}
|
|
|
|
= visibility_level_icon(group.visibility_level, fw: false)
|
|
|
|
|
2016-04-02 18:10:28 +05:30
|
|
|
= image_tag group_icon(group), class: "avatar s40 hidden-xs"
|
2016-06-02 11:05:42 +05:30
|
|
|
.title
|
|
|
|
= link_to group, class: 'group-name' do
|
|
|
|
= group.name
|
2015-09-25 12:07:36 +05:30
|
|
|
|
2016-06-02 11:05:42 +05:30
|
|
|
- if group_member
|
|
|
|
as
|
|
|
|
%span #{group_member.human_access}
|
2015-09-25 12:07:36 +05:30
|
|
|
|
2016-04-02 18:10:28 +05:30
|
|
|
- if group.description.present?
|
2016-06-02 11:05:42 +05:30
|
|
|
.description
|
2016-04-02 18:10:28 +05:30
|
|
|
= markdown(group.description, pipeline: :description)
|