Commit c66bc99fb7d22d005cf0de687b9535f8bef52e23

Authored by Dmitriy Zaporozhets
1 parent 3c9d7b70

repo feed to partial

app/views/repositories/_feed.html.haml 0 → 100644
@@ -0,0 +1,15 @@ @@ -0,0 +1,15 @@
  1 +%a.project-update.titled{:href => project_commits_path(project, :ref => update.head.name)}
  2 + = image_tag gravatar_icon(update.author_email), :class => "left", :width => 40
  3 + %span.update-title
  4 + = dashboard_feed_title(update)
  5 + %span.update-author
  6 + %strong= update.author_name
  7 + authored
  8 + = time_ago_in_words(update.created_at)
  9 + ago
  10 + .title-block
  11 + %span.update-title
  12 + %span.commit.tag= update.head.name
  13 + %span.update-author
  14 + .left= truncate update.commit.id
  15 +
app/views/repositories/show.html.haml
@@ -4,18 +4,5 @@ @@ -4,18 +4,5 @@
4 #news-feed.news-feed 4 #news-feed.news-feed
5 .project-box.project-updates.ui-box.ui-box-small.ui-box-big 5 .project-box.project-updates.ui-box.ui-box-small.ui-box-big
6 - @activities.each do |update| 6 - @activities.each do |update|
7 - %a.project-update.titled{:href => project_commits_path(@project, :ref => update.head.name)}  
8 - = image_tag gravatar_icon(update.author_email), :class => "left", :width => 40  
9 - %span.update-title  
10 - = dashboard_feed_title(update)  
11 - %span.update-author  
12 - %strong= update.author_name  
13 - authored  
14 - = time_ago_in_words(update.created_at)  
15 - ago  
16 - .title-block  
17 - %span.update-title  
18 - %span.commit.tag= update.head.name  
19 - %span.update-author  
20 - .left= truncate update.commit.id 7 + = render "repositories/feed", :update => update, :project => @project
21 8