Merge pull request #2972 from coreos-inc/joseph.schorr/QS-115/hide-commit-info-incomplete

Hide trigger information that isn't present
This commit is contained in:
josephschorr 2018-01-10 11:23:54 -05:00 committed by GitHub
commit 8360bdb893
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -38,13 +38,14 @@
</span>
</div>
<div class="commit-information">
<span class="commit-who-when">
<span class="commit-who-when" ng-if="build.trigger_metadata.commit_info.date || build.trigger_metadata.commit_info.author">
Authored
<time-ago datetime="build.trigger_metadata.commit_info.date"></time-ago>
<time-ago datetime="build.trigger_metadata.commit_info.date" ng-if="build.trigger_metadata.commit_info.date"></time-ago>
<span class="anchor commit-who"
href="{{ build.trigger_metadata.commit_info.author.url }}"
is-only-text="!build.trigger_metadata.commit_info.author.url"
ng-safenewtab>
ng-safenewtab
ng-if="build.trigger_metadata.commit_info.author">
<img ng-src="{{ build.trigger_metadata.commit_info.author.avatar_url }}"
ng-if="build.trigger_metadata.commit_info.author.avatar_url">
{{ build.trigger_metadata.commit_info.author.username }}