Commit 501ca8e6e83c221487ccc03da906ccda385831c8
1 parent
0296121f
Exists in
master
and in
4 other branches
Fix compare crash after decorator refactoring
Showing
2 changed files
with
5 additions
and
2 deletions
Show diff stats
app/controllers/commits_controller.rb
| @@ -52,6 +52,8 @@ class CommitsController < ApplicationController | @@ -52,6 +52,8 @@ class CommitsController < ApplicationController | ||
| 52 | @commit = result[:commit] | 52 | @commit = result[:commit] |
| 53 | @diffs = result[:diffs] | 53 | @diffs = result[:diffs] |
| 54 | @line_notes = [] | 54 | @line_notes = [] |
| 55 | + | ||
| 56 | + @commits = CommitDecorator.decorate(@commits) | ||
| 55 | end | 57 | end |
| 56 | 58 | ||
| 57 | def patch | 59 | def patch |
app/views/commits/compare.html.haml
| @@ -24,8 +24,9 @@ | @@ -24,8 +24,9 @@ | ||
| 24 | 24 | ||
| 25 | 25 | ||
| 26 | - unless @commits.empty? | 26 | - unless @commits.empty? |
| 27 | - %h4 Commits (#{@commits.count}) | ||
| 28 | - %ul.unstyled= render @commits | 27 | + %div.ui-box |
| 28 | + %h5.small Commits (#{@commits.count}) | ||
| 29 | + %ul.unstyled= render @commits | ||
| 29 | 30 | ||
| 30 | - unless @diffs.empty? | 31 | - unless @diffs.empty? |
| 31 | %h4 Diff | 32 | %h4 Diff |