Added dashboard page. Projects page not root from now

This commit is contained in:
Dmitriy Zaporozhets 2012-02-28 22:59:36 +02:00
parent 34e1580184
commit 376bec26de
16 changed files with 141 additions and 39 deletions

View file

@ -1,17 +1,8 @@
- @active_projects.first(3).each do |project|
= link_to project do
%h4= project.name
- project.updates(3).each do |update|
%a.project-update{:href => dashboard_feed_path(project, update)}
= image_tag gravatar_icon(update.author_email), :class => "avatar", :width => 32
%div
= 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
- @active_projects.first(10).each do |project|
.wll
= link_to project do
%h4
= project.name
%small
last activity at
= project.last_activity_date_cached.stamp("Aug 25, 2011")