summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>2013-04-19 18:09:14 +0300
committerDmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>2013-04-19 18:09:14 +0300
commit142fd2c11d434bdd7ff26bef746fb583b2df892a (patch)
tree10c410712e2d23d25db657938debfcbd30cf3f8f
parent827a0018a998e7100c91fad48df166c67fcf0e1b (diff)
downloadgitlab-ce-142fd2c11d434bdd7ff26bef746fb583b2df892a.tar.gz
move promo section in shared partial
-rw-r--r--app/views/dashboard/_sidebar.html.haml5
-rw-r--r--app/views/groups/show.html.haml5
-rw-r--r--app/views/shared/_promo.html.haml4
-rw-r--r--app/views/teams/show.html.haml5
4 files changed, 7 insertions, 12 deletions
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); });