diff options
author | Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com> | 2015-05-05 11:26:27 +0300 |
---|---|---|
committer | Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com> | 2015-05-05 11:26:27 +0300 |
commit | 31e5cd214ec6c50be440c4dfc093952b7f13a4b0 (patch) | |
tree | 33caa0e006214ab5dfd96ef1734857337e92d5b6 /app | |
parent | 04e365ebb761d56f2269452caa7206957afacb1a (diff) | |
download | gitlab-ce-31e5cd214ec6c50be440c4dfc093952b7f13a4b0.tar.gz |
Move project section to own partial
Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
Diffstat (limited to 'app')
-rw-r--r-- | app/views/projects/_section.html.haml | 15 | ||||
-rw-r--r-- | app/views/projects/show.html.haml | 15 |
2 files changed, 16 insertions, 14 deletions
diff --git a/app/views/projects/_section.html.haml b/app/views/projects/_section.html.haml new file mode 100644 index 00000000000..3e7a5ae3c22 --- /dev/null +++ b/app/views/projects/_section.html.haml @@ -0,0 +1,15 @@ +.hidden-xs + = render "events/event_last_push", event: @last_push + + - if current_user + %ul.nav.nav-pills.event_filter.pull-right + %li + = link_to namespace_project_path(@project.namespace, @project, format: :atom, private_token: current_user.private_token), title: "Feed", class: 'rss-btn' do + %i.fa.fa-rss + Activity Feed + + = render 'shared/event_filter' + %hr +.content_list += spinner + diff --git a/app/views/projects/show.html.haml b/app/views/projects/show.html.haml index 5cf2b73600c..8132ac730c8 100644 --- a/app/views/projects/show.html.haml +++ b/app/views/projects/show.html.haml @@ -41,20 +41,7 @@ .row %section.col-md-9 - .hidden-xs - = render "events/event_last_push", event: @last_push - - - if current_user - %ul.nav.nav-pills.event_filter.pull-right - %li - = link_to namespace_project_path(@project.namespace, @project, format: :atom, private_token: current_user.private_token), title: "Feed", class: 'rss-btn' do - %i.fa.fa-rss - Activity Feed - - = render 'shared/event_filter' - %hr - .content_list - = spinner + = render 'section' %aside.col-md-3.project-side = render 'aside' |