dashboard replaced [event] by tag
This commit is contained in:
parent
78e6dc5fa5
commit
3f56202713
2 changed files with 4 additions and 3 deletions
|
@ -28,6 +28,6 @@ module DashboardHelper
|
||||||
else return "Project Wall"
|
else return "Project Wall"
|
||||||
end
|
end
|
||||||
|
|
||||||
"[#{klass}] #{truncate(sanitize(title, :tags => []), :length => 60)} "
|
truncate(sanitize(title, :tags => []), :length => 60)
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
|
@ -27,13 +27,14 @@
|
||||||
%a.project-update{:href => dashboard_feed_path(project, update)}
|
%a.project-update{:href => dashboard_feed_path(project, update)}
|
||||||
= image_tag gravatar_icon(update.author_email), :class => "left", :width => 40
|
= image_tag gravatar_icon(update.author_email), :class => "left", :width => 40
|
||||||
%span.update-title
|
%span.update-title
|
||||||
- if update.kind_of?(Grit::Commit)
|
|
||||||
%span.right.tag.commit= update.head.name
|
|
||||||
= dashboard_feed_title(update)
|
= dashboard_feed_title(update)
|
||||||
%span.update-author
|
%span.update-author
|
||||||
%strong= update.author_name
|
%strong= update.author_name
|
||||||
authored
|
authored
|
||||||
= time_ago_in_words(update.created_at)
|
= time_ago_in_words(update.created_at)
|
||||||
ago
|
ago
|
||||||
|
.right
|
||||||
|
- klass = update.class.to_s.split("::").last.downcase
|
||||||
|
%span.tag{ :class => klass }= klass
|
||||||
/ #news-feed
|
/ #news-feed
|
||||||
/ #dashboard-content
|
/ #dashboard-content
|
||||||
|
|
Loading…
Add table
Reference in a new issue