Commit 3f562027139913f3ee46f8c97b86fc7ef536319f
1 parent
78e6dc5f
Exists in
master
and in
4 other branches
dashboard replaced [event] by tag
Showing
2 changed files
with
4 additions
and
3 deletions
Show diff stats
app/helpers/dashboard_helper.rb
app/views/dashboard/index.html.haml
| ... | ... | @@ -27,13 +27,14 @@ |
| 27 | 27 | %a.project-update{:href => dashboard_feed_path(project, update)} |
| 28 | 28 | = image_tag gravatar_icon(update.author_email), :class => "left", :width => 40 |
| 29 | 29 | %span.update-title |
| 30 | - - if update.kind_of?(Grit::Commit) | |
| 31 | - %span.right.tag.commit= update.head.name | |
| 32 | 30 | = dashboard_feed_title(update) |
| 33 | 31 | %span.update-author |
| 34 | 32 | %strong= update.author_name |
| 35 | 33 | authored |
| 36 | 34 | = time_ago_in_words(update.created_at) |
| 37 | 35 | ago |
| 36 | + .right | |
| 37 | + - klass = update.class.to_s.split("::").last.downcase | |
| 38 | + %span.tag{ :class => klass }= klass | |
| 38 | 39 | / #news-feed |
| 39 | 40 | / #dashboard-content | ... | ... |