Event feed: Icons for some events
This commit is contained in:
parent
1e4d15b406
commit
860e3ab526
7 changed files with 11 additions and 2 deletions
BIN
app/assets/images/event_mr_merged.png
Normal file
BIN
app/assets/images/event_mr_merged.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 463 B |
BIN
app/assets/images/event_push.png
Normal file
BIN
app/assets/images/event_push.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 632 B |
|
@ -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;
|
||||
|
|
|
@ -83,7 +83,6 @@
|
|||
|
||||
.project_name {
|
||||
float:left;
|
||||
width:360px;
|
||||
margin:0;
|
||||
margin-right:30px;
|
||||
font-size:20px;
|
||||
|
|
|
@ -97,7 +97,6 @@
|
|||
}
|
||||
.project_name {
|
||||
float:left;
|
||||
width:360px;
|
||||
margin:0;
|
||||
margin-right:30px;
|
||||
font-size:20px;
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue