Commit bc7897180d8cfad0f573137d379fedfa7939ee0f
1 parent
9a709f76
Exists in
master
and in
4 other branches
Better visibility of event commit links & commits ids
Showing
6 changed files
with
23 additions
and
9 deletions
Show diff stats
app/assets/stylesheets/common.scss
@@ -337,6 +337,15 @@ p.time { | @@ -337,6 +337,15 @@ p.time { | ||
337 | padding: 15px 5px; | 337 | padding: 15px 5px; |
338 | &:last-child { border:none } | 338 | &:last-child { border:none } |
339 | .wll:hover { background:none } | 339 | .wll:hover { background:none } |
340 | + | ||
341 | + .event_commits { | ||
342 | + margin-top: 5px; | ||
343 | + | ||
344 | + li.commit { | ||
345 | + padding:5px; | ||
346 | + border:none; | ||
347 | + } | ||
348 | + } | ||
340 | } | 349 | } |
341 | 350 | ||
342 | .ico { | 351 | .ico { |
app/assets/stylesheets/gitlab_bootstrap.scss
app/assets/stylesheets/sections/commits.scss
@@ -199,4 +199,11 @@ | @@ -199,4 +199,11 @@ | ||
199 | background:#FCEEC1; | 199 | background:#FCEEC1; |
200 | color:$style_color; | 200 | color:$style_color; |
201 | } | 201 | } |
202 | + | ||
203 | + .commit_short_id { | ||
204 | + float:left; | ||
205 | + @extend .lined; | ||
206 | + min-width:65px; | ||
207 | + font-family: 'Menlo', 'Liberation Mono', 'Consolas', 'Courier New', 'andale mono','lucida console',monospace; | ||
208 | + } | ||
202 | } | 209 | } |
app/assets/stylesheets/sections/issues.scss
@@ -32,15 +32,12 @@ | @@ -32,15 +32,12 @@ | ||
32 | 32 | ||
33 | p { | 33 | p { |
34 | padding-top:0; | 34 | padding-top:0; |
35 | + padding-bottom:2px; | ||
35 | } | 36 | } |
36 | 37 | ||
37 | img.avatar { | 38 | img.avatar { |
38 | width:32px; | 39 | width:32px; |
39 | margin-top:4px; | 40 | margin-top:4px; |
40 | } | 41 | } |
41 | - .row_title { | ||
42 | - padding:0px; | ||
43 | - padding-bottom:2px; | ||
44 | - } | ||
45 | } | 42 | } |
46 | } | 43 | } |
app/views/commits/_commit.html.haml
@@ -3,7 +3,7 @@ | @@ -3,7 +3,7 @@ | ||
3 | %p | 3 | %p |
4 | %strong= link_to "Browse Code »", tree_project_ref_path(@project, commit.id), :class => "right" | 4 | %strong= link_to "Browse Code »", tree_project_ref_path(@project, commit.id), :class => "right" |
5 | %p | 5 | %p |
6 | - %code.left= link_to commit.short_id, project_commit_path(@project, :id => commit.id) | 6 | + = link_to commit.short_id(8), project_commit_path(@project, :id => commit.id), :class => "commit_short_id" |
7 | %strong.cgray= commit.author_name | 7 | %strong.cgray= commit.author_name |
8 | – | 8 | – |
9 | = image_tag gravatar_icon(commit.author_email), :class => "avatar", :width => 16 | 9 | = image_tag gravatar_icon(commit.author_email), :class => "avatar", :width => 16 |
app/views/events/_commit.html.haml
1 | - commit = CommitDecorator.decorate(commit) | 1 | - commit = CommitDecorator.decorate(commit) |
2 | %li.wll.commit | 2 | %li.wll.commit |
3 | %p | 3 | %p |
4 | - %code.left= link_to commit.short_id, project_commit_path(project, :id => commit.id) | ||
5 | - %strong.cgray= commit.author_name | 4 | + = link_to commit.short_id(8), project_commit_path(project, :id => commit.id), :class => "commit_short_id" |
5 | + %strong.cdark= commit.author_name | ||
6 | – | 6 | – |
7 | = image_tag gravatar_icon(commit.author_email), :class => "avatar", :width => 16 | 7 | = image_tag gravatar_icon(commit.author_email), :class => "avatar", :width => 16 |
8 | - = link_to truncate(commit.title, :length => 50), project_commit_path(project, :id => commit.id), :class => "row_title" rescue "--broken encoding" | 8 | + = truncate(commit.title, :length => 50) rescue "--broken encoding" |
9 | 9 |