Commit 1d217381 authored by Dmitriy Zaporozhets's avatar Dmitriy Zaporozhets

Show activity/projects depends on access

parent 4e1c6019
...@@ -16,22 +16,26 @@ ...@@ -16,22 +16,26 @@
= render 'shared/show_aside' = render 'shared/show_aside'
.row - if can?(current_user, :read_group, @group)
%section.activities.col-md-7 .row
.hidden-xs %section.activities.col-md-7
- if current_user .hidden-xs
= render "events/event_last_push", event: @last_push - if current_user
= render "events/event_last_push", event: @last_push
%ul.nav.nav-pills.event_filter.pull-right %ul.nav.nav-pills.event_filter.pull-right
%li %li
= link_to group_path(@group, { format: :atom, private_token: current_user.private_token }), title: "Feed", class: 'rss-btn' do = link_to group_path(@group, { format: :atom, private_token: current_user.private_token }), title: "Feed", class: 'rss-btn' do
%i.fa.fa-rss %i.fa.fa-rss
= render 'shared/event_filter' = render 'shared/event_filter'
%hr %hr
.content_list .content_list
= spinner = spinner
- if @projects.any?
%aside.side.col-md-5 %aside.side.col-md-5
= render "projects", projects: @projects = render "projects", projects: @projects
- else
%p
= icon('lock')
This is a private group
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment