Commit cbca0457f8a9e3b6dfb5fe9f97b1a5c144e80725

Authored by randx
1 parent 88c625e3

Issues list more compact now

app/assets/stylesheets/common.scss
... ... @@ -616,10 +616,11 @@ li.note {
616 616 float:left;
617 617 margin-right:20px;
618 618 .icon {
619   - width:16px;
620   - height:16px;
  619 + width:12px;
  620 + height:12px;
621 621 float:left;
622 622 margin-right:5px;
  623 + margin-top: 2px;
623 624 @include border-radius(4px);
624 625 &.critical {
625 626 background: #EAA;
... ... @@ -652,10 +653,10 @@ li.note {
652 653 .issue {
653 654 .list_legend {
654 655 margin-right: 5px;
655   - margin-top: 10px;
  656 + margin-top: 14px;
656 657 .icon {
657   - width:16px;
658   - height:16px;
  658 + width:8px;
  659 + height:8px;
659 660 float:left;
660 661 margin-right:5px;
661 662 @include border-radius(4px);
... ...
app/assets/stylesheets/sections/issues.scss
... ... @@ -26,4 +26,17 @@
26 26 }
27 27 }
28 28  
  29 +#issues-table {
  30 + .issue {
  31 + padding:7px 10px;
29 32  
  33 + img.avatar {
  34 + width:32px;
  35 + margin-top:4px;
  36 + }
  37 + p.row_title {
  38 + padding:0px;
  39 + padding-bottom:2px;
  40 + }
  41 + }
  42 +}
... ...
app/views/issues/_show.html.haml
... ... @@ -17,18 +17,19 @@
17 17  
18 18 - if issue.assignee
19 19 = image_tag gravatar_icon(issue.assignee_email), :class => "avatar"
20   - %span.update-author
21   - assigned to
22   - %strong= issue.assignee_name
23   - - if issue.upvotes > 0
24   - %span.badge.badge-success= "+#{issue.upvotes}"
25   -
26 20 - else
27 21 = image_tag "no_avatar.png", :class => "avatar"
28   - %span.update-author
29   - Unassigned
30   - - if issue.upvotes > 0
31   - %span.badge.badge-success= "+#{issue.upvotes}"
32 22  
33 23 = link_to project_issue_path(issue.project, issue) do
34 24 %p.row_title= truncate(issue.title, :length => 100)
  25 +
  26 + %span.update-author
  27 + - if issue.assignee
  28 + assigned to #{issue.assignee_name}
  29 + - else
  30 +  
  31 +
  32 + - if issue.upvotes > 0
  33 + %span.badge.badge-success= "+#{issue.upvotes}"
  34 +
  35 +
... ...