Commit b7deda94 authored by Mike Greiling's avatar Mike Greiling

collapse nested if statement

parent 093dd5ce
......@@ -91,9 +91,8 @@
%span #{time_ago_with_tooltip(build.finished_at)}
%td.coverage
- if coverage
- if build.try(:coverage)
#{build.coverage}%
- if coverage && build.try(:coverage)
#{build.coverage}%
%td
.pull-right
......
......@@ -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
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment