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