OSDN Git Service

Show both Private and Public labels on project show page
authorDmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
Mon, 21 Oct 2013 11:20:37 +0000 (14:20 +0300)
committerDmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
Mon, 21 Oct 2013 11:20:37 +0000 (14:20 +0300)
app/assets/stylesheets/sections/projects.scss
app/views/projects/show.html.haml

index a0c57ab..0c218e6 100644 (file)
@@ -30,7 +30,7 @@
     float: right;
   }
   .project-home-extra {
-    margin-top: 20px;
+    margin-top: 15px;
 
     .project-home-desc {
       float: left;
index fe06adc..ba04ad0 100644 (file)
@@ -5,6 +5,9 @@
         = @project.name_with_namespace
         - if @project.public
           %span.public-label Public
+        - else
+          %span.public-label Private
+
     .span8
       .project-home-dropdown
         = render "dropdown"