From 501ca8e6e83c221487ccc03da906ccda385831c8 Mon Sep 17 00:00:00 2001 From: randx Date: Wed, 25 Jul 2012 21:45:53 +0300 Subject: [PATCH] Fix compare crash after decorator refactoring --- app/controllers/commits_controller.rb | 2 ++ app/views/commits/compare.html.haml | 5 +++-- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/app/controllers/commits_controller.rb b/app/controllers/commits_controller.rb index a854056..05f29da 100644 --- a/app/controllers/commits_controller.rb +++ b/app/controllers/commits_controller.rb @@ -52,6 +52,8 @@ class CommitsController < ApplicationController @commit = result[:commit] @diffs = result[:diffs] @line_notes = [] + + @commits = CommitDecorator.decorate(@commits) end def patch diff --git a/app/views/commits/compare.html.haml b/app/views/commits/compare.html.haml index 66ed8da..04d8af5 100644 --- a/app/views/commits/compare.html.haml +++ b/app/views/commits/compare.html.haml @@ -24,8 +24,9 @@ - unless @commits.empty? - %h4 Commits (#{@commits.count}) - %ul.unstyled= render @commits + %div.ui-box + %h5.small Commits (#{@commits.count}) + %ul.unstyled= render @commits - unless @diffs.empty? %h4 Diff -- libgit2 0.21.2