2016-01-13 10:26:40 -05:00
|
|
|
- @no_container = true
|
|
|
|
|
2015-09-14 09:01:04 -04:00
|
|
|
- unless can?(current_user, :read_group, @group)
|
|
|
|
- @disable_search_panel = true
|
|
|
|
|
2015-04-21 10:31:40 -04:00
|
|
|
= content_for :meta_tags do
|
|
|
|
- if current_user
|
|
|
|
= auto_discovery_link_tag(:atom, group_url(@group, format: :atom, private_token: current_user.private_token), title: "#{@group.name} activity")
|
|
|
|
|
2015-12-22 10:37:29 -05:00
|
|
|
.cover-block
|
2016-01-10 03:49:14 -05:00
|
|
|
.cover-controls
|
|
|
|
- if @group && can?(current_user, :admin_group, @group)
|
|
|
|
= link_to icon('pencil'), edit_group_path(@group), class: 'btn'
|
2016-01-10 23:46:57 -05:00
|
|
|
- if current_user
|
|
|
|
= link_to icon('rss'), group_path(@group, { format: :atom, private_token: current_user.private_token }), title: "Feed", class: 'btn rss-btn'
|
2016-01-10 03:49:14 -05:00
|
|
|
|
2015-12-22 10:37:29 -05:00
|
|
|
.avatar-holder
|
|
|
|
= link_to group_icon(@group), target: '_blank' do
|
|
|
|
= image_tag group_icon(@group), class: "avatar group-avatar s90"
|
|
|
|
.cover-title
|
|
|
|
= @group.name
|
|
|
|
|
|
|
|
.cover-desc.username
|
|
|
|
@#{@group.path}
|
|
|
|
|
|
|
|
- if @group.description.present?
|
|
|
|
.cover-desc.description
|
|
|
|
= markdown(@group.description, pipeline: :description)
|
|
|
|
|
2016-01-13 08:37:25 -05:00
|
|
|
|
2016-01-13 09:03:32 -05:00
|
|
|
%ul.nav-links
|
2015-12-22 10:37:29 -05:00
|
|
|
%li.active
|
|
|
|
= link_to "#activity", 'data-toggle' => 'tab' do
|
|
|
|
Activity
|
2016-02-04 13:05:40 -05:00
|
|
|
%li
|
|
|
|
= link_to "#projects", 'data-toggle' => 'tab' do
|
|
|
|
Projects
|
2015-12-22 10:37:29 -05:00
|
|
|
|
2016-01-13 08:37:25 -05:00
|
|
|
- if can?(current_user, :read_group, @group)
|
|
|
|
%div{ class: container_class }
|
|
|
|
.tab-content
|
|
|
|
.tab-pane.active#activity
|
|
|
|
.activity-filter-block
|
|
|
|
- if current_user
|
|
|
|
= render "events/event_last_push", event: @last_push
|
2015-12-22 10:37:29 -05:00
|
|
|
|
2016-01-13 08:37:25 -05:00
|
|
|
= render 'shared/event_filter'
|
2015-12-22 10:37:29 -05:00
|
|
|
|
2016-02-08 20:34:54 -05:00
|
|
|
.content_list{data: {href: events_group_path}}
|
2016-01-13 08:37:25 -05:00
|
|
|
= spinner
|
2015-12-22 10:37:29 -05:00
|
|
|
|
2016-01-13 08:37:25 -05:00
|
|
|
.tab-pane#projects
|
|
|
|
= render "projects", projects: @projects
|
2015-12-22 10:37:29 -05:00
|
|
|
|
|
|
|
- else
|
2016-01-13 09:58:04 -05:00
|
|
|
%p.nav-links.no-top
|
2015-12-28 06:32:18 -05:00
|
|
|
No projects to show
|