Development Override Compose File
[laas.git] / src / templates / dashboard / ci_pods.html
1 {% extends "dashboard/table.html" %}
2 {% load staticfiles %}
3 {% load jenkins_filters %}
4
5 {% block table %}
6     <thead>
7     <tr>
8         <th>Name</th>
9         <th>Slave Name</th>
10         <th>Status</th>
11         <th>Installer</th>
12         <th>Scenario</th>
13         <th>Branch</th>
14         <th>Job</th>
15     </tr>
16     </thead>
17     <tbody>
18     {% for pod in ci_pods %}
19         <tr>
20             <td>
21                 <a target='_blank' href={{ pod.url }}>{{ pod.name }}</a>
22             </td>
23             <td>
24                 <a target='_blank' href={{ pod.slave.url }}>{{ pod.slave.name }}</a>
25             </td>
26             <td style="background-color:{{ pod.slave.status | jenkins_status_color }}">
27                 {{ pod.slave.status }}
28             </td>
29             <td {{ pod.slave.last_job_result | jenkins_job_blink }}>
30                 {{ pod.slave.last_job_installer }}
31             </td>
32             <td {{ pod.slave.last_job_result | jenkins_job_blink }}>
33                 {{ pod.slave.last_job_scenario }}
34             </td>
35             <td {{ pod.slave.last_job_result | jenkins_job_blink }}>
36                 {{ pod.slave.last_job_branch }}
37             </td>
38             <td><a {{ pod.slave.last_job_result | jenkins_job_blink }}
39                     style="color:{{ pod.slave.last_job_result | jenkins_job_color }}"
40                     target='_blank'
41                     href={{ pod.slave.last_job_url }}>{{ pod.slave.last_job_name }}</a>
42             </td>
43         </tr>
44     {% endfor %}
45     </tbody>
46 {% endblock table %}
47
48
49 {% block tablejs %}
50     <script type="text/javascript">
51         $(document).ready(function () {
52             $('#table').DataTable({
53                 scrollX: true,
54                 columnDefs: [
55                     {type: 'status', targets: 2}
56                 ],
57                 "order": [[2, "asc"]]
58             });
59         });
60     </script>
61 {% endblock tablejs %}