OSDN Git Service

Issues list more compact now
authorrandx <dmitriy.zaporozhets@gmail.com>
Tue, 26 Jun 2012 19:23:49 +0000 (22:23 +0300)
committerrandx <dmitriy.zaporozhets@gmail.com>
Tue, 26 Jun 2012 19:23:49 +0000 (22:23 +0300)
app/assets/stylesheets/common.scss
app/assets/stylesheets/sections/issues.scss
app/views/issues/_show.html.haml

index 6cd71ac..b880252 100644 (file)
@@ -616,10 +616,11 @@ li.note {
   float:left;
   margin-right:20px;
   .icon {
-    width:16px;
-    height:16px;
+    width:12px;
+    height:12px;
     float:left;
     margin-right:5px;
+    margin-top: 2px;
     @include border-radius(4px);
     &.critical { 
       background: #EAA;
@@ -652,10 +653,10 @@ li.note {
 .issue { 
   .list_legend { 
     margin-right: 5px;
-    margin-top: 10px;
+    margin-top: 14px;
     .icon {
-      width:16px;
-      height:16px;
+      width:8px;
+      height:8px;
       float:left;
       margin-right:5px;
       @include border-radius(4px);
index a3bd408..58ef8a1 100644 (file)
   }
 }
 
+#issues-table { 
+  .issue { 
+    padding:7px 10px;
 
+    img.avatar { 
+      width:32px;
+      margin-top:4px;
+    }
+    p.row_title { 
+      padding:0px;
+      padding-bottom:2px;
+    }
+  }
+}
index b6b5d72..fe9b6b3 100644 (file)
 
   - if issue.assignee
     = image_tag gravatar_icon(issue.assignee_email), :class => "avatar"
-    %span.update-author
-      assigned to
-      %strong= issue.assignee_name
-      - if issue.upvotes > 0
-        %span.badge.badge-success= "+#{issue.upvotes}"
-
   - else
     = image_tag "no_avatar.png", :class => "avatar"
-    %span.update-author
-      Unassigned
-      - if issue.upvotes > 0
-        %span.badge.badge-success= "+#{issue.upvotes}"
 
   = link_to project_issue_path(issue.project, issue) do
     %p.row_title= truncate(issue.title, :length => 100)
+
+  %span.update-author
+    - if issue.assignee
+      assigned to #{issue.assignee_name}
+    - else
+      &nbsp;
+
+    - if issue.upvotes > 0
+      %span.badge.badge-success= "+#{issue.upvotes}"
+
+