summaryrefslogtreecommitdiff
path: root/partials/visualisation.html
blob: ba3e887e0f80f21dfc48dfa2b140c4d2375a5099 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
<div class="visualisation"
     ng-style="selected && {'top': '35%'}">
    <div class="box"
         ng-class="{'pass': step.lastBuild.success, 'active': step.data.state == 'building', 'fail': step.lastBuild.failed}"
         ng-repeat="step in steps"
         ng-click="select(step, $event)">
        {{step.name}}
    </div>
    <br />
    <div class="detail"
         ng-show="selected"
         ng-click="$event.stopPropagation()">
        <a class="close" ng-click="select()">&times;</a>
        <h3>{{selected.name}}</h3>
        <div class="detail-contents">
            <p><strong>State:</strong> {{selected.data.state}}</p>
            <p><strong>Last Build:</strong> {{selected.lastBuild.number}} at {{selected.lastBuild.sourceStamps[0].changes[0].at}} 
            <p><strong>Logs for {{selected.lastBuild.number}}:</strong></p>
            <ul>
                <li ng-repeat="step in selected.lastBuild.steps">
                    <a ng-href="{{step.logs[0][1]}}">{{step.name}} {{step.logs[0][0]}}</a>
                </li>
            </ul>
        </div>
    </div>
</div>