OSDN Git Service

Add description to project features on edit project page
authorDmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
Sun, 2 Dec 2012 17:28:23 +0000 (19:28 +0200)
committerDmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
Sun, 2 Dec 2012 17:28:23 +0000 (19:28 +0200)
app/assets/stylesheets/common.scss
app/assets/stylesheets/sections/projects.scss
app/views/projects/_form.html.haml

index d79e97a..738ec2b 100644 (file)
@@ -679,3 +679,16 @@ h1.http_status_code {
   font-weight: normal;
   color: #456;
 }
+
+.control-group {
+  .controls {
+    span {
+      &.descr {
+        position: relative;
+        top: 2px;
+        left: 5px;
+        color: #666;
+      }
+    }
+  }
+}
index 452fbc2..a230f29 100644 (file)
   .adv_settings {
     h6 { margin-left: 40px; }
   }
+
+  fieldset.features {
+    .control-label {
+      font-weight: bold;
+    }
+  }
 }
 
 .project_clone_panel {
index 5c60132..9bb411a 100644 (file)
         = f.label :default_branch, "Default Branch"
         .input= f.select(:default_branch, @project.heads.map(&:name), {}, style: "width:210px;")
 
-  %fieldset
+  %fieldset.features
     %legend Features:
 
-    .clearfix
-      = f.label :issues_enabled, "Issues"
-      .input= f.check_box :issues_enabled
+    .control-group
+      = f.label :issues_enabled, "Issues", class: 'control-label'
+      .controls
+        = f.check_box :issues_enabled
+        %span.descr Lightweight issue tracking system for this project
 
-    .clearfix
-      = f.label :merge_requests_enabled, "Merge Requests"
-      .input= f.check_box :merge_requests_enabled
+    .control-group
+      = f.label :merge_requests_enabled, "Merge Requests", class: 'control-label'
+      .controls
+        = f.check_box :merge_requests_enabled
+        %span.descr Submit changes to be merged upstream.
 
-    .clearfix
-      = f.label :wall_enabled, "Wall"
-      .input= f.check_box :wall_enabled
+    .control-group
+      = f.label :wall_enabled, "Wall", class: 'control-label'
+      .controls
+        = f.check_box :wall_enabled
+        %span.descr Simple chat system for broadcasting inside project
 
-    .clearfix
-      = f.label :wiki_enabled, "Wiki"
-      .input= f.check_box :wiki_enabled
+    .control-group
+      = f.label :wiki_enabled, "Wiki", class: 'control-label'
+      .controls
+        = f.check_box :wiki_enabled
+        %span.descr Pages for project documentation
 
   %br