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,6 +28,6 @@ module DashboardHelper
28 else return "Project Wall" 28 else return "Project Wall"
29 end 29 end
30 30
31 - "[#{klass}] #{truncate(sanitize(title, :tags => []), :length => 60)} " 31 + truncate(sanitize(title, :tags => []), :length => 60)
32 end 32 end
33 end 33 end
app/views/dashboard/index.html.haml
@@ -27,13 +27,14 @@ @@ -27,13 +27,14 @@
27 %a.project-update{:href => dashboard_feed_path(project, update)} 27 %a.project-update{:href => dashboard_feed_path(project, update)}
28 = image_tag gravatar_icon(update.author_email), :class => "left", :width => 40 28 = image_tag gravatar_icon(update.author_email), :class => "left", :width => 40
29 %span.update-title 29 %span.update-title
30 - - if update.kind_of?(Grit::Commit)  
31 - %span.right.tag.commit= update.head.name  
32 = dashboard_feed_title(update) 30 = dashboard_feed_title(update)
33 %span.update-author 31 %span.update-author
34 %strong= update.author_name 32 %strong= update.author_name
35 authored 33 authored
36 = time_ago_in_words(update.created_at) 34 = time_ago_in_words(update.created_at)
37 ago 35 ago
  36 + .right
  37 + - klass = update.class.to_s.split("::").last.downcase
  38 + %span.tag{ :class => klass }= klass
38 / #news-feed 39 / #news-feed
39 / #dashboard-content 40 / #dashboard-content