update pipeline url
[GitLab/stricted-build/lineage_builder.git] / ui / templates / builds.html
1 {%- extends "base.html" %}
2
3
4 {% import "bootstrap/utils.html" as utils %}
5 {% from "bootstrap/pagination.html" import render_pagination %}
6 {% block content %}
7 <div class="container">
8 <table class="table table-striped">
9 <tr>
10 <th scope="col">ID</th>
11 <th scope="col">Status</th>
12 <th scope="col">Device</th>
13 <th scope="col">Version</th>
14 <th scope="col">Type</th>
15 <th scope="col">Date</th>
16 <th scope="col">Duration</th>
17 <th scope="col">Runner</th>
18 </tr>
19 {% for build in builds.items %}
20 {% if build.build_status == "success" %}
21 {% set color = "default" %}
22 {% elif build.build_status == "pending" %}
23 {% set color = "info" %}
24 {% elif build.build_status == "failed" %}
25 {% set color = "danger" %}
26 {% else %}
27 {% set color = "warning" %}
28 {% endif %}
29 <tr class="{{color}}">
30 <th scope="row"><a href="https://gitlab.com/stricted-build/android_build/pipelines/{{build.build_id}}">{{build.build_id}}</a></th>
31 <td>{{build.build_status}}</td>
32 <td>{{build.build_device}}</td>
33 <td>{{build.build_version}}</td>
34 <td>{{build.build_type}}</td>
35 <td>{{build.build_date}}</td>
36 <td>{% if build.build_duration %}{{(build.build_duration / 60) | round(2)}} min{% endif %}</td>
37 <td><a href="/runners/{{build.build_runner.runner_name}}">{{build.build_runner.runner_name}}</a></td>
38 </tr>
39 {% endfor %}
40 </table>
41 {{render_pagination(builds)}}
42 </div>
43 {% include "footer.html" %}
44 {% endblock %}