summaryrefslogtreecommitdiff
path: root/partials/visualisation.html
blob: 9ddd8a17caebffa921b2e814a3593175d2946b15 (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
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
<div class="visualisation"
     ng-style="selected && {'top': '35%'}">


    <div class="row boxes">

        <div class="lane col-md-2 ng-hide">
            <h3>Change detection</h3>
        </div>

        <div class="lane col-md-2">
            <h3>Integration</h3>
            <div class="box"
                 ng-class="{'pass': step.lastBuild.success, 'active': step.data.state == 'building', 'fail': step.lastBuild.failed}"
                 ng-repeat="step in integrations"
                 ng-click="select(step, $event)">
                {{step.name}}
            </div>
        </div>

        <div class="lane col-md-2">
            <h3>Build</h3>
            <div class="box"
                 ng-class="{'pass': step.lastBuild.success, 'active': step.data.state == 'building', 'fail': step.lastBuild.failed}"
                 ng-repeat="step in builds"
                 ng-click="select(step, $event)">
                {{step.name}}
            </div>
        </div>

        <div class="lane col-md-2">
            <h3>Provisioning</h3>
            <div class="box"
                 ng-class="{'pass': step.lastBuild.success, 'active': step.data.state == 'building', 'fail': step.lastBuild.failed}"
                 ng-repeat="step in deploys"
                 ng-click="select(step, $event)">
                {{step.name}}
            </div>
        </div>

        <div class="lane col-md-2">
            <h3>Automatic test</h3>
            <div class="box"
                 ng-class="{'pass': step.lastBuild.success, 'active': step.data.state == 'building', 'fail': step.lastBuild.failed}"
                 ng-repeat="step in tests"
                 ng-click="select(step, $event)">
                {{step.name}}
            </div>
        </div>

        <div class="lane col-md-2">
            <h3>Publishing</h3>
            <div class="box"
                 ng-class="{'pass': step.lastBuild.success, 'active': step.data.state == 'building', 'fail': step.lastBuild.failed}"
                 ng-repeat="step in publishings"
                 ng-click="select(step, $event)">
                {{step.name}}
            </div>
        </div>

    </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>
                <a ng-href="/#/builders/{{selected.name}}/builds/{{selected.lastBuild.number}}">
                    {{selected.lastBuild.number}} at
                    {{selected.lastBuild.sourceStamps[0].changes[0].at}}
                </a>
            </p>
            <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>
            <p><a ng-href="/#/builders/{{selected.name}}/">Full builder details</a></p>
        </div>
    </div>
</div>