Commit b57faf9282d7df6cdd62953d474652a0ae2e6896
1 parent
cadf12c6
Exists in
master
and in
4 other branches
Push events polished
Showing
5 changed files
with
21 additions
and
9 deletions
Show diff stats
app/assets/stylesheets/common.scss
@@ -871,7 +871,7 @@ p.time { | @@ -871,7 +871,7 @@ p.time { | ||
871 | 871 | ||
872 | .event_feed { | 872 | .event_feed { |
873 | min-height:40px; | 873 | min-height:40px; |
874 | - border-bottom:1px solid #eee; | 874 | + border-bottom:1px solid #ddd; |
875 | .avatar { | 875 | .avatar { |
876 | width:32px; | 876 | width:32px; |
877 | } | 877 | } |
@@ -884,8 +884,6 @@ p.time { | @@ -884,8 +884,6 @@ p.time { | ||
884 | } | 884 | } |
885 | 885 | ||
886 | padding: 15px 5px; | 886 | padding: 15px 5px; |
887 | - border-bottom: 1px solid #eee; | ||
888 | - border-bottom: 1px solid rgba(0, 0, 0, 0.05); | ||
889 | &:last-child { border:none } | 887 | &:last-child { border:none } |
890 | .wll:hover { background:none } | 888 | .wll:hover { background:none } |
891 | } | 889 | } |
@@ -0,0 +1,9 @@ | @@ -0,0 +1,9 @@ | ||
1 | +%li.wll.commit | ||
2 | + = link_to project_commit_path(project, :id => commit.id) do | ||
3 | + %p | ||
4 | + %code.left= commit.id.to_s[0..10] | ||
5 | + %strong.cgray= commit.author_name | ||
6 | + – | ||
7 | + = image_tag gravatar_icon(commit.author_email), :class => "avatar", :width => 16 | ||
8 | + %span.row_title= truncate(commit.safe_message, :length => 50) rescue "--broken encoding" | ||
9 | + |
app/views/events/_event_changed_merge_request.html.haml
@@ -13,6 +13,7 @@ at | @@ -13,6 +13,7 @@ at | ||
13 | %span.cgray | 13 | %span.cgray |
14 | = time_ago_in_words(event.created_at) | 14 | = time_ago_in_words(event.created_at) |
15 | ago. | 15 | ago. |
16 | +%br | ||
16 | %span.label= event.merge_request.source_branch | 17 | %span.label= event.merge_request.source_branch |
17 | → | 18 | → |
18 | %span.label= event.merge_request.target_branch | 19 | %span.label= event.merge_request.target_branch |
app/views/events/_event_new_merge_request.html.haml
@@ -9,6 +9,7 @@ at | @@ -9,6 +9,7 @@ at | ||
9 | %span.cgray | 9 | %span.cgray |
10 | = time_ago_in_words(event.created_at) | 10 | = time_ago_in_words(event.created_at) |
11 | ago. | 11 | ago. |
12 | +%br | ||
12 | %span.label= event.merge_request.source_branch | 13 | %span.label= event.merge_request.source_branch |
13 | → | 14 | → |
14 | %span.label= event.merge_request.target_branch | 15 | %span.label= event.merge_request.target_branch |
app/views/events/_event_push.html.haml
@@ -30,13 +30,16 @@ | @@ -30,13 +30,16 @@ | ||
30 | ago. | 30 | ago. |
31 | - if event.commits.count > 1 | 31 | - if event.commits.count > 1 |
32 | = link_to compare_project_commits_path(event.project, :from => event.commits.first.prev_commit_id, :to => event.commits.last.id) do | 32 | = link_to compare_project_commits_path(event.project, :from => event.commits.first.prev_commit_id, :to => event.commits.last.id) do |
33 | - Compare #{event.commits.first.commit.id[0..8]}...#{event.commits.last.id[0..8]} | ||
34 | - - @project = event.project | 33 | + %strong #{event.commits.first.commit.id[0..7]}...#{event.commits.last.id[0..7]} |
34 | + - project = event.project | ||
35 | %ul.unstyled.event_commits | 35 | %ul.unstyled.event_commits |
36 | - if event.commits.size > 3 | 36 | - if event.commits.size > 3 |
37 | - = render event.commits[0...2] | ||
38 | - %li ... and #{event.commits.size - 2} more commits | 37 | + - event.commits[0...2].each do |commit| |
38 | + = render "events/commit", :commit => commit, :project => project | ||
39 | + %li | ||
40 | + %br | ||
41 | + \... and #{event.commits.size - 2} more commits | ||
39 | - else | 42 | - else |
40 | - = render event.commits | ||
41 | - | 43 | + - event.commits.each do |commit| |
44 | + = render "events/commit", :commit => commit, :project => project | ||
42 | 45 |