add custom trigger build description

This commit is contained in:
Jimmy Zelinskie 2015-04-03 17:18:54 -04:00
parent 15ffec4678
commit 7d72608006

View file

@ -59,7 +59,47 @@
</span>
</span>
<!-- Custom -->
<span ng-switch-when="custom">
<!-- Full Commit Information -->
<span ng-if="build.job_config.trigger_metadata.commit_info">
<div class="commit-message">
{{ build.job_config.trigger_metadata.commit_info.message }}
</div>
<div class="commit-information">
<span class="commit-who-when">
Authored
<span am-time-ago="build.job_config.trigger_metadata.commit_info.date"></span>
<span class="commit-who">
{{ build.job_config.trigger_metadata.commit_info.author.username }}
</span>
</span>
<span>
{{ build.job_config.trigger_metadata.commit_sha }}
</span>
<span>
{{ build.job_config.trigger_metadata.ref }}
</span>
</div>
</span>
<!-- Just commit SHA -->
<span ng-if="build.job_config.trigger_metadata && !build.job_config.trigger_metadata.commit_info">
Triggered by commit
<span>
{{ build.job_config.trigger_metadata.commit_sha }}
</span>
</span>
<!-- No information -->
<span ng-if="!build.job_config.trigger_metadata">
Triggered by commit to
<i class="fa fa-git fa-lg" data-title="git" bs-tooltip="tooltip.title"></i>
{{ build.trigger.config.build_source }}
</span>
</span>
<!-- Unknown -->
<span ng-switch-default></span>
<span ng-switch-default>Unknown Build Trigger</span>
</span>
</div>
</div>