Hide trigger information that isn't present

Fixes https://jira.coreos.com/browse/QS-115
This commit is contained in:
Joseph Schorr 2018-01-10 11:20:35 -05:00
parent 82db86ad3f
commit 20b9a40585

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 }}