Update views to use CommitDecorator
This commit is contained in:
parent
ff40b7de7a
commit
34cea1cb63
11 changed files with 28 additions and 19 deletions
|
@ -4,11 +4,11 @@
|
|||
%strong= link_to "Browse Code »", tree_project_ref_path(@project, commit.id), :class => "right"
|
||||
= link_to project_commit_path(@project, :id => commit.id) do
|
||||
%p
|
||||
%code.left= commit.id.to_s[0..10]
|
||||
%code.left= commit.short_id
|
||||
%strong.cgray= commit.author_name
|
||||
–
|
||||
= image_tag gravatar_icon(commit.author_email), :class => "avatar", :width => 16
|
||||
%span.row_title= truncate(commit.safe_message, :length => 50)
|
||||
%span.row_title= truncate(commit.title, :length => 50)
|
||||
|
||||
%span.committed_ago
|
||||
= time_ago_in_words(commit.committed_date)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue