Event feed: Icons for some events

This commit is contained in:
Dmitriy Zaporozhets 2012-05-19 12:25:16 +03:00
parent 1e4d15b406
commit 860e3ab526
7 changed files with 11 additions and 2 deletions

Binary file not shown.

After

Width:  |  Height:  |  Size: 463 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 632 B

View file

@ -645,6 +645,13 @@ p.time {
.avatar {
width:32px;
}
.event_icon {
float:right;
margin-right:2px;
img {
width:20px;
}
}
ul {
margin-left:50px;
margin-bottom:5px;

View file

@ -83,7 +83,6 @@
.project_name {
float:left;
width:360px;
margin:0;
margin-right:30px;
font-size:20px;

View file

@ -97,7 +97,6 @@
}
.project_name {
float:left;
width:360px;
margin:0;
margin-right:30px;
font-size:20px;

View file

@ -1,3 +1,5 @@
- if event.action_name == "merged"
.event_icon= image_tag "event_mr_merged.png"
= image_tag gravatar_icon(event.author_email), :class => "avatar"
%strong #{event.author_name}
%span.event_label= event.action_name

View file

@ -1,7 +1,9 @@
%div
.event_icon= image_tag "event_push.png"
= image_tag gravatar_icon(event.author_email), :class => "avatar"
%strong #{event.author_name}
%span.event_label= event.push_action_name
= event.ref_type
= link_to project_commits_path(event.project, :ref => event.ref_name) do
%strong= event.ref_name
at