OSDN Git Service

better presenting for group description
authorDmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
Fri, 1 Mar 2013 14:26:26 +0000 (16:26 +0200)
committerDmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
Fri, 1 Mar 2013 14:26:26 +0000 (16:26 +0200)
app/assets/stylesheets/gitlab_bootstrap/common.scss
app/views/groups/new.html.haml
app/views/groups/show.html.haml
app/views/teams/new.html.haml
app/views/teams/show.html.haml

index dcfd610..9e015eb 100644 (file)
@@ -30,6 +30,8 @@
   border-color: #DDD;
 }
 
+.well { padding: 15px; }
+
 /** HELPERS **/
 .nothing_here_message {
   text-align: center;
index 2104db8..36ee492 100644 (file)
       = f.text_area :description, maxlength: 250, class: "xxlarge js-gfm-input", rows: 4
 
   .form-actions
-    = f.submit 'Create group', class: "btn btn-primary"
+    = f.submit 'Create group', class: "btn btn-create"
 
 
-  %hr
   .padded
     %ul
       %li Group is kind of directory for several projects
index fe08e0b..81694b8 100644 (file)
@@ -1,8 +1,3 @@
-- if @group.description.present?
-  .description
-    = @group.description
-  %hr
-
 .projects
   .activities.span8
     = render "events/event_last_push", event: @last_push
@@ -17,6 +12,9 @@
       %p.nothing_here_message Project activity will be displayed here
     .loading.hide
   .side.span4
+    - if @group.description.present?
+      .description.well.light
+        = @group.description
     = render "projects", projects: @projects
     %div
       %span.rss-icon
index 332a6a5..99d3082 100644 (file)
@@ -18,7 +18,6 @@
   .form-actions
     = f.submit 'Create team', class: "btn btn-create"
 
-  %hr
   .padded
     %ul
       %li All created teams are public (users can view who enter into team and which project are assigned for this team)
index 34be769..43cc026 100644 (file)
@@ -1,8 +1,3 @@
-- if @team.description.present?
-  .description
-    = @team.description
-  %hr
-
 .projects
   .activities.span8
     = link_to dashboard_path, class: 'btn btn-tiny' do
@@ -16,6 +11,9 @@
       %p.nothing_here_message Projects activity will be displayed here
     .loading.hide
   .side.span4
+    - if @team.description.present?
+      .description.well.light
+        = @team.description
     = render "projects", projects: @projects
     %div
       %span.rss-icon