Commit 16bd018f authored by Dmitriy Zaporozhets's avatar Dmitriy Zaporozhets

clickable news feed on dashboard

parent 367c4f42
...@@ -21,20 +21,19 @@ ...@@ -21,20 +21,19 @@
Dashboard Dashboard
- @active_projects.first(3).each do |project| - @active_projects.first(3).each do |project|
.project-box.project-updates.ui-box.ui-box-small.ui-box-big .project-box.project-updates.ui-box.ui-box-small.ui-box-big
%h3= project.name = link_to project, do
.data %h3= project.name
- project.updates(3).each do |update| .data
%a.project-update{:href => dashboard_feed_path(project, update)} - project.updates(3).each do |update|
= image_tag gravatar_icon(update.author_email), :class => "left", :width => 40 %a.project-update{:href => dashboard_feed_path(project, update)}
%span.update-title = image_tag gravatar_icon(update.author_email), :class => "left", :width => 40
= dashboard_feed_title(update) %span.update-title
%span.update-author = dashboard_feed_title(update)
%strong= update.author_name %span.update-author
authored %strong= update.author_name
= time_ago_in_words(update.created_at) authored
ago = time_ago_in_words(update.created_at)
.right ago
- klass = update.class.to_s.split("::").last.downcase .right
%span.tag{ :class => klass }= klass - klass = update.class.to_s.split("::").last.downcase
/ #news-feed %span.tag{ :class => klass }= klass
/ #dashboard-content
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment