From 16bd018f08f3da0a9e25855cadf5f0064296642f Mon Sep 17 00:00:00 2001 From: Dmitriy Zaporozhets <dzaporozhets@sphereconsultinginc.com> Date: Fri, 25 Nov 2011 22:26:44 +0200 Subject: [PATCH] clickable news feed on dashboard --- app/views/dashboard/index.html.haml | 33 ++++++++++++++--------------- 1 file changed, 16 insertions(+), 17 deletions(-) diff --git a/app/views/dashboard/index.html.haml b/app/views/dashboard/index.html.haml index ef01c0a0591..9b7c381b1a3 100644 --- a/app/views/dashboard/index.html.haml +++ b/app/views/dashboard/index.html.haml @@ -21,20 +21,19 @@ Dashboard - @active_projects.first(3).each do |project| .project-box.project-updates.ui-box.ui-box-small.ui-box-big - %h3= project.name - .data - - project.updates(3).each do |update| - %a.project-update{:href => dashboard_feed_path(project, update)} - = image_tag gravatar_icon(update.author_email), :class => "left", :width => 40 - %span.update-title - = dashboard_feed_title(update) - %span.update-author - %strong= update.author_name - authored - = time_ago_in_words(update.created_at) - ago - .right - - klass = update.class.to_s.split("::").last.downcase - %span.tag{ :class => klass }= klass - / #news-feed -/ #dashboard-content + = link_to project, do + %h3= project.name + .data + - project.updates(3).each do |update| + %a.project-update{:href => dashboard_feed_path(project, update)} + = image_tag gravatar_icon(update.author_email), :class => "left", :width => 40 + %span.update-title + = dashboard_feed_title(update) + %span.update-author + %strong= update.author_name + authored + = time_ago_in_words(update.created_at) + ago + .right + - klass = update.class.to_s.split("::").last.downcase + %span.tag{ :class => klass }= klass -- 2.30.9