2015-02-27 21:00:32 +00:00
|
|
|
<div class="build-logs-view-element" ng-class="useTimestamps ? 'with-timestamps' : ''">
|
|
|
|
<button id="copyButton" class="btn btn-primary copy-button" data-clipboard-text="{{ buildLogsText }}">
|
|
|
|
<i class="fa fa-clipboard"></i>Copy Logs
|
|
|
|
</button>
|
|
|
|
|
2015-02-26 22:45:28 +00:00
|
|
|
<span class="cor-loader" ng-if="!logEntries"></span>
|
|
|
|
|
2015-03-06 19:10:07 +00:00
|
|
|
<span class="no-logs" ng-if="!logEntries.length && currentBuild.phase == 'waiting'">
|
|
|
|
(Waiting for build to start)
|
|
|
|
</span>
|
2015-02-26 22:45:28 +00:00
|
|
|
|
|
|
|
<div class="log-container" ng-class="container.type" ng-repeat="container in logEntries">
|
|
|
|
<div class="container-header" ng-class="container.type == 'phase' ? container.message : ''"
|
|
|
|
ng-switch on="container.type" ng-click="container.logs.toggle()">
|
|
|
|
<i class="fa chevron"
|
2015-02-27 21:00:32 +00:00
|
|
|
ng-class="container.logs.isVisible ? 'fa-chevron-down' : 'fa-chevron-right'"
|
|
|
|
ng-show="hasLogs(container)"></i>
|
2015-02-26 22:45:28 +00:00
|
|
|
<div ng-switch-when="phase">
|
|
|
|
<span class="container-content build-log-phase" phase="container"></span>
|
|
|
|
</div>
|
|
|
|
<div ng-switch-when="error">
|
|
|
|
<span class="container-content build-log-error" error="container" entries="logEntries"></span>
|
|
|
|
</div>
|
|
|
|
<div ng-switch-when="command">
|
|
|
|
<span class="container-content build-log-command" command="container"></span>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<!-- Display the entries for the container -->
|
|
|
|
<div class="container-logs" ng-show="container.logs.isVisible">
|
|
|
|
<div class="log-entry" bindonce ng-repeat="entry in container.logs.visibleEntries">
|
2015-02-27 21:00:32 +00:00
|
|
|
<span class="id" bo-text="$index + container.index + 1" ng-if="!useTimestamps"></span>
|
2015-04-28 17:26:21 +00:00
|
|
|
<span class="id" bo-text="formatDatetime(entry.data.datetime)" ng-if="useTimestamps"></span>
|
2015-02-26 22:45:28 +00:00
|
|
|
<span class="message" bo-html="processANSI(entry.message, container)"></span>
|
2015-03-06 19:22:19 +00:00
|
|
|
<span class="timestamp" bo-text="formatDatetime(entry.data.datetime)" ng-if="!useTimestamps"></span>
|
2015-02-26 22:45:28 +00:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
2015-03-30 21:55:04 +00:00
|
|
|
</div>
|