Commit 16bd018f08f3da0a9e25855cadf5f0064296642f

Authored by Dmitriy Zaporozhets
1 parent 367c4f42

clickable news feed on dashboard

Showing 1 changed file with 16 additions and 17 deletions   Show diff stats
app/views/dashboard/index.html.haml
... ... @@ -21,20 +21,19 @@
21 21 Dashboard
22 22 - @active_projects.first(3).each do |project|
23 23 .project-box.project-updates.ui-box.ui-box-small.ui-box-big
24   - %h3= project.name
25   - .data
26   - - project.updates(3).each do |update|
27   - %a.project-update{:href => dashboard_feed_path(project, update)}
28   - = image_tag gravatar_icon(update.author_email), :class => "left", :width => 40
29   - %span.update-title
30   - = dashboard_feed_title(update)
31   - %span.update-author
32   - %strong= update.author_name
33   - authored
34   - = time_ago_in_words(update.created_at)
35   - ago
36   - .right
37   - - klass = update.class.to_s.split("::").last.downcase
38   - %span.tag{ :class => klass }= klass
39   - / #news-feed
40   -/ #dashboard-content
  24 + = link_to project, do
  25 + %h3= project.name
  26 + .data
  27 + - project.updates(3).each do |update|
  28 + %a.project-update{:href => dashboard_feed_path(project, update)}
  29 + = image_tag gravatar_icon(update.author_email), :class => "left", :width => 40
  30 + %span.update-title
  31 + = dashboard_feed_title(update)
  32 + %span.update-author
  33 + %strong= update.author_name
  34 + authored
  35 + = time_ago_in_words(update.created_at)
  36 + ago
  37 + .right
  38 + - klass = update.class.to_s.split("::").last.downcase
  39 + %span.tag{ :class => klass }= klass
... ...