clickable news feed on dashboard
This commit is contained in:
parent
367c4f42f0
commit
16bd018f08
1 changed files with 16 additions and 17 deletions
|
@ -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
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue