repo feed to partial

This commit is contained in:
Dmitriy Zaporozhets 2012-01-10 20:06:41 +02:00
parent 3c9d7b7077
commit c66bc99fb7
2 changed files with 16 additions and 14 deletions

View File

@ -0,0 +1,15 @@
%a.project-update.titled{:href => project_commits_path(project, :ref => update.head.name)}
= image_tag gravatar_icon(update.author_email), :class => "left", :width => 40
%span.update-title
= dashboard_feed_title(update)
%span.update-author
%strong= update.author_name
authored
= time_ago_in_words(update.created_at)
ago
.title-block
%span.update-title
%span.commit.tag= update.head.name
%span.update-author
.left= truncate update.commit.id

View File

@ -4,18 +4,5 @@
#news-feed.news-feed
.project-box.project-updates.ui-box.ui-box-small.ui-box-big
- @activities.each do |update|
%a.project-update.titled{:href => project_commits_path(@project, :ref => update.head.name)}
= image_tag gravatar_icon(update.author_email), :class => "left", :width => 40
%span.update-title
= dashboard_feed_title(update)
%span.update-author
%strong= update.author_name
authored
= time_ago_in_words(update.created_at)
ago
.title-block
%span.update-title
%span.commit.tag= update.head.name
%span.update-author
.left= truncate update.commit.id
= render "repositories/feed", :update => update, :project => @project