Commit 860e3ab526bbcccd64aac45fa377c14e78ef345c

Authored by Dmitriy Zaporozhets
1 parent 1e4d15b4

Event feed: Icons for some events

app/assets/images/event_mr_merged.png 0 → 100644

463 Bytes

app/assets/images/event_push.png 0 → 100644

632 Bytes

app/assets/stylesheets/common.scss
... ... @@ -645,6 +645,13 @@ p.time {
645 645 .avatar {
646 646 width:32px;
647 647 }
  648 + .event_icon {
  649 + float:right;
  650 + margin-right:2px;
  651 + img {
  652 + width:20px;
  653 + }
  654 + }
648 655 ul {
649 656 margin-left:50px;
650 657 margin-bottom:5px;
... ...
app/assets/stylesheets/ui_basic.scss
... ... @@ -83,7 +83,6 @@
83 83  
84 84 .project_name {
85 85 float:left;
86   - width:360px;
87 86 margin:0;
88 87 margin-right:30px;
89 88 font-size:20px;
... ...
app/assets/stylesheets/ui_mars.scss
... ... @@ -97,7 +97,6 @@
97 97 }
98 98 .project_name {
99 99 float:left;
100   - width:360px;
101 100 margin:0;
102 101 margin-right:30px;
103 102 font-size:20px;
... ...
app/views/events/_event_merge_request.html.haml
  1 +- if event.action_name == "merged"
  2 + .event_icon= image_tag "event_mr_merged.png"
1 3 = image_tag gravatar_icon(event.author_email), :class => "avatar"
2 4 %strong #{event.author_name}
3 5 %span.event_label= event.action_name
... ...
app/views/events/_event_push.html.haml
1 1 %div
  2 + .event_icon= image_tag "event_push.png"
2 3 = image_tag gravatar_icon(event.author_email), :class => "avatar"
3 4 %strong #{event.author_name}
4 5 %span.event_label= event.push_action_name
  6 + = event.ref_type
5 7 = link_to project_commits_path(event.project, :ref => event.ref_name) do
6 8 %strong= event.ref_name
7 9 at
... ...