OSDN Git Service

move promo section in shared partial
authorDmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
Fri, 19 Apr 2013 15:09:14 +0000 (18:09 +0300)
committerDmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
Fri, 19 Apr 2013 15:09:14 +0000 (18:09 +0300)
app/views/dashboard/_sidebar.html.haml
app/views/groups/show.html.haml
app/views/shared/_promo.html.haml [new file with mode: 0644]
app/views/teams/show.html.haml

index 876a5b6..748ff98 100644 (file)
@@ -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'
index 62d640c..e90abc7 100644 (file)
           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 (file)
index 0000000..c97f8ba
--- /dev/null
@@ -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"
index 88cffa0..4b9ff61 100644 (file)
           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); });