diff options
author | Mike Greiling <mike@pixelcog.com> | 2016-11-28 21:08:29 -0600 |
---|---|---|
committer | Mike Greiling <mike@pixelcog.com> | 2016-11-29 12:55:08 -0600 |
commit | b7deda9405e3c7355bd470b4288b636e95bcb5b2 (patch) | |
tree | 1faf078af933ef6d249e59fa7e480e8ad95cca9d /app/views/projects/generic_commit_statuses/_generic_commit_status.html.haml | |
parent | 093dd5cef8d5130101218ce258aceb92a9d60a6a (diff) | |
download | gitlab-ce-b7deda9405e3c7355bd470b4288b636e95bcb5b2.tar.gz |
collapse nested if statement
Diffstat (limited to 'app/views/projects/generic_commit_statuses/_generic_commit_status.html.haml')
-rw-r--r-- | app/views/projects/generic_commit_statuses/_generic_commit_status.html.haml | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/app/views/projects/generic_commit_statuses/_generic_commit_status.html.haml b/app/views/projects/generic_commit_statuses/_generic_commit_status.html.haml index 131883b8106..7f751d9ae2e 100644 --- a/app/views/projects/generic_commit_statuses/_generic_commit_status.html.haml +++ b/app/views/projects/generic_commit_statuses/_generic_commit_status.html.haml @@ -83,9 +83,8 @@ %span #{time_ago_with_tooltip(generic_commit_status.finished_at)} %td.coverage - - if coverage - - if generic_commit_status.try(:coverage) - #{generic_commit_status.coverage}% + - if coverage && generic_commit_status.try(:coverage) + #{generic_commit_status.coverage}% %td -# empty column to match number of columns in ci/builds/_build.html.haml |