Commit 142fd2c11d434bdd7ff26bef746fb583b2df892a

Authored by Dmitriy Zaporozhets
1 parent 827a0018

move promo section in shared partial

app/views/dashboard/_sidebar.html.haml
... ... @@ -22,7 +22,4 @@
22 22 News Feed
23 23  
24 24 %hr
25   -.gitlab-promo
26   - = link_to "Homepage", "http://gitlab.org"
27   - = link_to "Blog", "http://blog.gitlab.org"
28   - = link_to "@gitlabhq", "https://twitter.com/gitlabhq"
  25 += render 'shared/promo'
... ...
app/views/groups/show.html.haml
... ... @@ -23,10 +23,7 @@
23 23 News Feed
24 24  
25 25 %hr
26   - .gitlab-promo
27   - = link_to "Homepage", "http://gitlabhq.com"
28   - = link_to "Blog", "http://blog.gitlabhq.com"
29   - = link_to "@gitlabhq", "https://twitter.com/gitlabhq"
  26 + = render 'shared/promo'
30 27  
31 28 :javascript
32 29 $(function(){ Pager.init(20, true); });
... ...
app/views/shared/_promo.html.haml 0 → 100644
... ... @@ -0,0 +1,4 @@
  1 +.gitlab-promo
  2 + = link_to "Homepage", "http://gitlab.org"
  3 + = link_to "Blog", "http://blog.gitlab.org"
  4 + = link_to "@gitlabhq", "https://twitter.com/gitlabhq"
... ...
app/views/teams/show.html.haml
... ... @@ -22,10 +22,7 @@
22 22 News Feed
23 23  
24 24 %hr
25   - .gitlab-promo
26   - = link_to "Homepage", "http://gitlabhq.com"
27   - = link_to "Blog", "http://blog.gitlabhq.com"
28   - = link_to "@gitlabhq", "https://twitter.com/gitlabhq"
  25 + = render 'shared/promo'
29 26  
30 27 :javascript
31 28 $(function(){ Pager.init(20, true); });
... ...