repo feed to partial
This commit is contained in:
parent
3c9d7b7077
commit
c66bc99fb7
2 changed files with 16 additions and 14 deletions
15
app/views/repositories/_feed.html.haml
Normal file
15
app/views/repositories/_feed.html.haml
Normal 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
|
||||||
|
|
|
@ -4,18 +4,5 @@
|
||||||
#news-feed.news-feed
|
#news-feed.news-feed
|
||||||
.project-box.project-updates.ui-box.ui-box-small.ui-box-big
|
.project-box.project-updates.ui-box.ui-box-small.ui-box-big
|
||||||
- @activities.each do |update|
|
- @activities.each do |update|
|
||||||
%a.project-update.titled{:href => project_commits_path(@project, :ref => update.head.name)}
|
= render "repositories/feed", :update => update, :project => @project
|
||||||
= 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
|
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue