From 142fd2c11d434bdd7ff26bef746fb583b2df892a Mon Sep 17 00:00:00 2001 From: Dmitriy Zaporozhets Date: Fri, 19 Apr 2013 18:09:14 +0300 Subject: move promo section in shared partial --- app/views/dashboard/_sidebar.html.haml | 5 +---- app/views/groups/show.html.haml | 5 +---- app/views/shared/_promo.html.haml | 4 ++++ app/views/teams/show.html.haml | 5 +---- 4 files changed, 7 insertions(+), 12 deletions(-) create mode 100644 app/views/shared/_promo.html.haml diff --git a/app/views/dashboard/_sidebar.html.haml b/app/views/dashboard/_sidebar.html.haml index 876a5b61297..748ff9810b5 100644 --- a/app/views/dashboard/_sidebar.html.haml +++ b/app/views/dashboard/_sidebar.html.haml @@ -22,7 +22,4 @@ News Feed %hr -.gitlab-promo - = link_to "Homepage", "http://gitlab.org" - = link_to "Blog", "http://blog.gitlab.org" - = link_to "@gitlabhq", "https://twitter.com/gitlabhq" += render 'shared/promo' diff --git a/app/views/groups/show.html.haml b/app/views/groups/show.html.haml index 62d640c8532..e90abc71c0c 100644 --- a/app/views/groups/show.html.haml +++ b/app/views/groups/show.html.haml @@ -23,10 +23,7 @@ News Feed %hr - .gitlab-promo - = link_to "Homepage", "http://gitlabhq.com" - = link_to "Blog", "http://blog.gitlabhq.com" - = link_to "@gitlabhq", "https://twitter.com/gitlabhq" + = render 'shared/promo' :javascript $(function(){ Pager.init(20, true); }); diff --git a/app/views/shared/_promo.html.haml b/app/views/shared/_promo.html.haml new file mode 100644 index 00000000000..c97f8ba0f0e --- /dev/null +++ b/app/views/shared/_promo.html.haml @@ -0,0 +1,4 @@ +.gitlab-promo + = link_to "Homepage", "http://gitlab.org" + = link_to "Blog", "http://blog.gitlab.org" + = link_to "@gitlabhq", "https://twitter.com/gitlabhq" diff --git a/app/views/teams/show.html.haml b/app/views/teams/show.html.haml index 88cffa011ed..4b9ff61203f 100644 --- a/app/views/teams/show.html.haml +++ b/app/views/teams/show.html.haml @@ -22,10 +22,7 @@ News Feed %hr - .gitlab-promo - = link_to "Homepage", "http://gitlabhq.com" - = link_to "Blog", "http://blog.gitlabhq.com" - = link_to "@gitlabhq", "https://twitter.com/gitlabhq" + = render 'shared/promo' :javascript $(function(){ Pager.init(20, true); }); -- cgit v1.2.1