Commit b84b485bbe8f9b39729aede42a9fe437f700e26b
1 parent
ccfeddec
Exists in
master
and in
4 other branches
better commits list style
Showing
2 changed files
with
18 additions
and
4 deletions
Show diff stats
app/assets/stylesheets/commits.css.scss
@@ -145,3 +145,16 @@ ul.bordered-list li:last-child { border:none } | @@ -145,3 +145,16 @@ ul.bordered-list li:last-child { border:none } | ||
145 | left: 0; | 145 | left: 0; |
146 | margin-right: 10px; | 146 | margin-right: 10px; |
147 | } | 147 | } |
148 | + | ||
149 | +li.commit { | ||
150 | + .avatar { | ||
151 | + width:24px; | ||
152 | + top:-3px; | ||
153 | + margin-right:10px; | ||
154 | + margin-left:10px; | ||
155 | + } | ||
156 | + | ||
157 | + code { | ||
158 | + padding:4px; | ||
159 | + } | ||
160 | +} |
app/views/commits/_commit.html.haml
1 | -%li.wll | 1 | +%li.wll.commit |
2 | .right.span2 | 2 | .right.span2 |
3 | = link_to "Browse Code", tree_project_ref_path(@project, commit.id), :class => "btn small right" | 3 | = link_to "Browse Code", tree_project_ref_path(@project, commit.id), :class => "btn small right" |
4 | = link_to project_commit_path(@project, :id => commit.id) do | 4 | = link_to project_commit_path(@project, :id => commit.id) do |
5 | %p | 5 | %p |
6 | - %code= commit.id.to_s[0..10] | 6 | + %code.left= commit.id.to_s[0..10] |
7 | + %strong= commit.author_name | ||
7 | – | 8 | – |
8 | - = image_tag gravatar_icon(commit.author_email), :class => "", :width => 16 | ||
9 | - = truncate(commit.safe_message, :length => 50) | 9 | + = image_tag gravatar_icon(commit.author_email), :class => "avatar", :width => 16 |
10 | + %span= truncate(commit.safe_message, :length => 50) rescue "--broken encoding" | ||
10 | 11 | ||
11 | %span.right.cgray | 12 | %span.right.cgray |
12 | = time_ago_in_words(commit.committed_date) | 13 | = time_ago_in_words(commit.committed_date) |