summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>2015-05-05 11:26:27 +0300
committerDmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>2015-05-05 11:26:27 +0300
commit31e5cd214ec6c50be440c4dfc093952b7f13a4b0 (patch)
tree33caa0e006214ab5dfd96ef1734857337e92d5b6
parent04e365ebb761d56f2269452caa7206957afacb1a (diff)
downloadgitlab-ce-31e5cd214ec6c50be440c4dfc093952b7f13a4b0.tar.gz
Move project section to own partial
Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
-rw-r--r--app/views/projects/_section.html.haml15
-rw-r--r--app/views/projects/show.html.haml15
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'