_projects_feed.html.haml 596 Bytes
Newer Older
Dmitriy Zaporozhets's avatar
Dmitriy Zaporozhets committed
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
- @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
17