diff options
Diffstat (limited to 'app/views/commit/show.html.haml')
-rw-r--r-- | app/views/commit/show.html.haml | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/app/views/commit/show.html.haml b/app/views/commit/show.html.haml index 6a723ee856e..48fb44a99d5 100644 --- a/app/views/commit/show.html.haml +++ b/app/views/commit/show.html.haml @@ -1,10 +1,11 @@ = render "commit_box" -%p.pull-right.cgray - This commit has - %span.cgreen #{@commit.stats.additions} additions - and - %span.cred #{@commit.stats.deletions} deletions +- unless @commit.has_zero_stats? + %p.pull-right.cgray + This commit has + %span.cgreen #{@commit.stats.additions} additions + and + %span.cred #{@commit.stats.deletions} deletions = render "commits/diffs", diffs: @commit.diffs = render "notes/notes_with_form" |