Update views to use CommitDecorator
This commit is contained in:
parent
ff40b7de7a
commit
34cea1cb63
11 changed files with 28 additions and 19 deletions
|
@ -51,7 +51,8 @@ class RefsController < ApplicationController
|
|||
@logs = contents.map do |content|
|
||||
file = params[:path] ? File.join(params[:path], content.name) : content.name
|
||||
last_commit = @project.commits(@commit.id, file, 1).last
|
||||
{
|
||||
last_commit = CommitDecorator.decorate(last_commit)
|
||||
{
|
||||
:file_name => content.name,
|
||||
:commit => last_commit
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue