From 31e5cd214ec6c50be440c4dfc093952b7f13a4b0 Mon Sep 17 00:00:00 2001 From: Dmitriy Zaporozhets Date: Tue, 5 May 2015 11:26:27 +0300 Subject: Move project section to own partial Signed-off-by: Dmitriy Zaporozhets --- app/views/projects/_section.html.haml | 15 +++++++++++++++ app/views/projects/show.html.haml | 15 +-------------- 2 files changed, 16 insertions(+), 14 deletions(-) create mode 100644 app/views/projects/_section.html.haml 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' -- cgit v1.2.1