Fix compare crash after decorator refactoring
This commit is contained in:
parent
0296121f08
commit
501ca8e6e8
|
@ -52,6 +52,8 @@ class CommitsController < ApplicationController
|
||||||
@commit = result[:commit]
|
@commit = result[:commit]
|
||||||
@diffs = result[:diffs]
|
@diffs = result[:diffs]
|
||||||
@line_notes = []
|
@line_notes = []
|
||||||
|
|
||||||
|
@commits = CommitDecorator.decorate(@commits)
|
||||||
end
|
end
|
||||||
|
|
||||||
def patch
|
def patch
|
||||||
|
|
|
@ -24,7 +24,8 @@
|
||||||
|
|
||||||
|
|
||||||
- unless @commits.empty?
|
- unless @commits.empty?
|
||||||
%h4 Commits (#{@commits.count})
|
%div.ui-box
|
||||||
|
%h5.small Commits (#{@commits.count})
|
||||||
%ul.unstyled= render @commits
|
%ul.unstyled= render @commits
|
||||||
|
|
||||||
- unless @diffs.empty?
|
- unless @diffs.empty?
|
||||||
|
|
Loading…
Reference in a new issue