Commit 3f562027139913f3ee46f8c97b86fc7ef536319f

Authored by gitlabhq
1 parent 78e6dc5f

dashboard replaced [event] by tag

app/helpers/dashboard_helper.rb
... ... @@ -28,6 +28,6 @@ module DashboardHelper
28 28 else return "Project Wall"
29 29 end
30 30  
31   - "[#{klass}] #{truncate(sanitize(title, :tags => []), :length => 60)} "
  31 + truncate(sanitize(title, :tags => []), :length => 60)
32 32 end
33 33 end
... ...
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
... ...