2015-02-26 22:45:28 +00:00
|
|
|
<div class="triggered-build-description-element">
|
2015-04-29 23:50:13 +00:00
|
|
|
<div ng-switch on="infoDisplay">
|
|
|
|
<!-- Manually built with no user -->
|
|
|
|
<div class="tbd-content" class="manual" ng-switch-when="manual">
|
|
|
|
(Manually Triggered Build)
|
|
|
|
</div>
|
2015-03-13 22:34:28 +00:00
|
|
|
|
2015-04-29 23:50:13 +00:00
|
|
|
<!-- Manually built with a user -->
|
|
|
|
<div class="tbd-content" ng-switch-when="manual+user">
|
2015-04-30 19:33:19 +00:00
|
|
|
<i class="fa fa-user"></i> {{ build.manual_user }}
|
2015-04-29 23:50:13 +00:00
|
|
|
</div>
|
2015-03-13 22:34:28 +00:00
|
|
|
|
2015-04-29 23:50:13 +00:00
|
|
|
<!-- Source information only (i.e. no info) -->
|
|
|
|
<div class="tbd-content" ng-switch-when="source">
|
2015-04-30 19:33:19 +00:00
|
|
|
Triggered by
|
2015-06-29 09:36:39 +00:00
|
|
|
<div class="trigger-description" trigger="build.trigger"
|
2015-04-30 19:33:19 +00:00
|
|
|
style="display: inline-block; margin-left: 4px;"></div>
|
2015-04-29 23:50:13 +00:00
|
|
|
</div>
|
2015-03-13 22:34:28 +00:00
|
|
|
|
2015-04-29 23:50:13 +00:00
|
|
|
<!-- Just commit SHA -->
|
|
|
|
<div class="tbd-content" ng-switch-when="commitsha">
|
|
|
|
Triggered by commit
|
|
|
|
<span class="source-commit-link"
|
2015-06-02 19:43:55 +00:00
|
|
|
commit-sha="TriggerService.getCommitSHA(build.trigger_metadata)"></span>
|
2015-04-21 22:04:25 +00:00
|
|
|
</div>
|
2015-02-26 22:45:28 +00:00
|
|
|
|
2015-04-29 23:50:13 +00:00
|
|
|
<!-- Full Commit Information -->
|
|
|
|
<div class="tbd-content" ng-switch-when="fullcommit">
|
2015-04-03 21:18:54 +00:00
|
|
|
<div class="commit-message">
|
2015-04-30 19:33:19 +00:00
|
|
|
<span class="anchor" is-only-text="!TriggerService.getFullLinkTemplate(build, 'commit')"
|
2015-06-02 19:43:55 +00:00
|
|
|
target="_blank" href="{{ TriggerService.getFullLinkTemplate(build, 'commit').replace('{sha}', TriggerService.getCommitSHA(build.trigger_metadata)) }}">
|
2015-06-26 20:09:35 +00:00
|
|
|
{{ getMessageSummary(build.trigger_metadata.commit_info.message) }}
|
|
|
|
</span>
|
|
|
|
<span class="long-description-toggle"
|
|
|
|
ng-if="hasLongDescription(build.trigger_metadata.commit_info.message)"
|
|
|
|
ng-click="toggleLongDescription()">
|
|
|
|
...
|
2015-04-30 19:33:19 +00:00
|
|
|
</span>
|
2015-04-03 21:18:54 +00:00
|
|
|
</div>
|
|
|
|
<div class="commit-information">
|
|
|
|
<span class="commit-who-when">
|
|
|
|
Authored
|
2015-04-30 19:33:19 +00:00
|
|
|
<span am-time-ago="build.trigger_metadata.commit_info.date"></span>
|
|
|
|
<span class="anchor commit-who"
|
|
|
|
href="{{ build.trigger_metadata.commit_info.author.url }}"
|
|
|
|
is-only-text="!build.trigger_metadata.commit_info.author.url"
|
|
|
|
target="_blank">
|
|
|
|
<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 }}
|
2015-04-03 21:18:54 +00:00
|
|
|
</span>
|
|
|
|
</span>
|
2015-04-29 23:50:13 +00:00
|
|
|
<span class="source-commit-link"
|
2015-06-02 19:43:55 +00:00
|
|
|
commit-sha="TriggerService.getCommitSHA(build.trigger_metadata)"
|
2015-04-30 19:33:19 +00:00
|
|
|
url-template="TriggerService.getFullLinkTemplate(build, 'commit')"></span>
|
2015-04-29 23:50:13 +00:00
|
|
|
<span class="source-ref-link"
|
2015-04-30 19:33:19 +00:00
|
|
|
ref="build.trigger_metadata.ref"
|
|
|
|
branch-template="TriggerService.getFullLinkTemplate(build, 'branch')"
|
|
|
|
tag-template="TriggerService.getFullLinkTemplate(build, 'tag')"></span>
|
2015-04-03 21:18:54 +00:00
|
|
|
</div>
|
2015-04-21 22:04:25 +00:00
|
|
|
</div>
|
2015-06-26 20:09:35 +00:00
|
|
|
<div class="long-commit-description" ng-if="showLongDescription">{{ getMessageLongDescription(build.trigger_metadata.commit_info.message) }}</div>
|
2015-04-29 23:50:13 +00:00
|
|
|
</div>
|
2015-04-03 21:18:54 +00:00
|
|
|
</div>
|