diff options
Diffstat (limited to 'bitbake/lib/toaster/toastergui/templates/managed_builds.html')
-rw-r--r-- | bitbake/lib/toaster/toastergui/templates/managed_builds.html | 167 |
1 files changed, 0 insertions, 167 deletions
diff --git a/bitbake/lib/toaster/toastergui/templates/managed_builds.html b/bitbake/lib/toaster/toastergui/templates/managed_builds.html deleted file mode 100644 index 63ae5408f5..0000000000 --- a/bitbake/lib/toaster/toastergui/templates/managed_builds.html +++ /dev/null | |||
@@ -1,167 +0,0 @@ | |||
1 | {% extends "base.html" %} | ||
2 | |||
3 | {% load static %} | ||
4 | {% load projecttags %} | ||
5 | {% load humanize %} | ||
6 | |||
7 | {% block extraheadcontent %} | ||
8 | <link rel="stylesheet" href="/static/css/jquery-ui.min.css" type='text/css'> | ||
9 | <link rel="stylesheet" href="/static/css/jquery-ui.structure.min.css" type='text/css'> | ||
10 | <link rel="stylesheet" href="/static/css/jquery-ui.theme.min.css" type='text/css'> | ||
11 | <script src="/static/js/jquery-ui.min.js"></script> | ||
12 | <script src="/static/js/filtersnippet.js"></script> | ||
13 | {% endblock %} | ||
14 | |||
15 | {% block pagecontent %} | ||
16 | |||
17 | <script> | ||
18 | // initialize the date range controls | ||
19 | $(document).ready(function () { | ||
20 | date_init('created','{{last_date_from}}','{{last_date_to}}','{{dateMin_created}}','{{dateMax_created}}','{{daterange_selected}}'); | ||
21 | date_init('updated','{{last_date_from}}','{{last_date_to}}','{{dateMin_updated}}','{{dateMax_updated}}','{{daterange_selected}}'); | ||
22 | }); | ||
23 | </script> | ||
24 | |||
25 | <div class="row-fluid"> | ||
26 | |||
27 | {% include "managed_mrb_section.html" %} | ||
28 | |||
29 | |||
30 | {% if 1 %} | ||
31 | <div class="page-header top-air"> | ||
32 | <h1> | ||
33 | {% if request.GET.filter and objects.paginator.count > 0 or request.GET.search and objects.paginator.count > 0 %} | ||
34 | {{objects.paginator.count}} build{{objects.paginator.count|pluralize}} found | ||
35 | {%elif request.GET.filter and objects.paginator.count == 0 or request.GET.search and objects.paginator.count == 0 %} | ||
36 | No builds found | ||
37 | {%else%} | ||
38 | All builds | ||
39 | {%endif%} | ||
40 | </h1> | ||
41 | </div> | ||
42 | |||
43 | {% if objects.paginator.count == 0 %} | ||
44 | <div class="row-fluid"> | ||
45 | {% if request.GET.filter or request.GET.search %} | ||
46 | <div class="alert"> | ||
47 | <form class="no-results input-append" id="searchform"> | ||
48 | <input id="search" name="search" class="input-xxlarge" type="text" value="{{request.GET.search}}"/>{% if request.GET.search %}<a href="javascript:$('#search').val('');searchform.submit()" class="add-on btn" tabindex="-1"><i class="icon-remove"></i></a>{% endif %} | ||
49 | <button class="btn" type="submit" value="Search">Search</button> | ||
50 | <button class="btn btn-link" onclick="javascript:$('#search').val('');searchform.submit()">Show all builds</button> | ||
51 | </form> | ||
52 | </div> | ||
53 | {% else %} | ||
54 | <div class="alert alert-info"> | ||
55 | <p class="lead">Toaster has not recorded any builds yet. To run a build, <a href="{% url 'all-projects' %}">select the project</a> for which you want to build. | ||
56 | </div> | ||
57 | {% endif %} | ||
58 | </div> | ||
59 | |||
60 | |||
61 | {% else %} {# We have builds to display #} | ||
62 | {% include "basetable_top_buildprojects.html" %} | ||
63 | <!-- Table data rows; the order needs to match the order of "tablecols" definitions; and the <td class value needs to match the tablecols clclass value for show/hide buttons to work --> | ||
64 | {% for buildrequest in objects %}{% if buildrequest.build %} {% with build=buildrequest.build %} {# if we have a build, just display it #} | ||
65 | <tr class="data"> | ||
66 | <td class="outcome"><a href="{% url "builddashboard" build.id %}">{%if build.outcome == build.SUCCEEDED%}<i class="icon-ok-sign success"></i>{%elif build.outcome == build.FAILED%}<i class="icon-minus-sign error"></i>{%else%}{%endif%}</a> | ||
67 | {% if build.project %} | ||
68 | <a href="{% url 'build_artifact' build.id "cookerlog" build.id %}"> | ||
69 | <i class="icon-download-alt" title="" data-original-title="Download build log"></i> | ||
70 | </a> | ||
71 | {% endif %} | ||
72 | |||
73 | </td> | ||
74 | <td class="target">{% for t in build.target_set.all %} <a href="{% url "builddashboard" build.id %}"> {{t.target}} </a> <br />{% endfor %}</td> | ||
75 | <td class="machine"><a href="{% url "builddashboard" build.id %}">{{build.machine}}</a></td> | ||
76 | {% if MANAGED %} | ||
77 | <td class="project"> | ||
78 | {% if build.project %} | ||
79 | <a href="{% url 'project' build.project.id %}">{{build.project.name}}</a> | ||
80 | {% endif %} | ||
81 | </td> | ||
82 | {% endif %} | ||
83 | <td class="started_on"><a href="{% url "builddashboard" build.id %}">{{build.started_on|date:"d/m/y H:i"}}</a></td> | ||
84 | <td class="completed_on"><a href="{% url "builddashboard" build.id %}">{{build.completed_on|date:"d/m/y H:i"}}</a></td> | ||
85 | <td class="failed_tasks error"> | ||
86 | {% query build.task_build outcome=4 order__gt=0 as exectask%} | ||
87 | {% if exectask.count == 1 %} | ||
88 | <a href="{% url "task" build.id exectask.0.id %}">{{exectask.0.recipe.name}}.{{exectask.0.task_name}}</a> | ||
89 | {% if MANAGED and build.project %} | ||
90 | <a href="{% url 'build_artifact' build.id "tasklogfile" exectask.0.id %}"> | ||
91 | <i class="icon-download-alt" title="" data-original-title="Download task log file"></i> | ||
92 | </a> | ||
93 | {% endif %} | ||
94 | {% elif exectask.count > 1%} | ||
95 | <a href="{% url "tasks" build.id %}?filter=outcome%3A4">{{exectask.count}} task{{exectask.count|pluralize}}</a> | ||
96 | {%endif%} | ||
97 | </td> | ||
98 | <td class="errors_no"> | ||
99 | {% if build.errors_no %} | ||
100 | <a class="errors_no error" href="{% url "builddashboard" build.id %}#errors">{{build.errors_no}} error{{build.errors_no|pluralize}}</a> | ||
101 | {% if MANAGED and build.project and build.buildartifact_set.count %} | ||
102 | <a href="{% url 'build_artifact' build.id "cookerlog" build.id %}"> | ||
103 | <i class="icon-download-alt" title="" data-original-title="Download build log"></i> | ||
104 | </a> | ||
105 | {% endif %} | ||
106 | {%endif%} | ||
107 | </td> | ||
108 | <td class="warnings_no">{% if build.warnings_no %}<a class="warnings_no warning" href="{% url "builddashboard" build.id %}#warnings">{{build.warnings_no}} warning{{build.warnings_no|pluralize}}</a>{%endif%}</td> | ||
109 | <td class="time"><a href="{% url "buildtime" build.id %}">{{build.timespent|sectohms}}</a></td> | ||
110 | {% if not MANAGED or not build.project %} | ||
111 | <td class="log">{{build.cooker_log_path}}</td> | ||
112 | {% endif %} | ||
113 | <td class="output"> | ||
114 | {% if build.outcome == build.SUCCEEDED %} | ||
115 | <a href="{%url "builddashboard" build.id%}#images">{{fstypes|get_dict_value:build.id}}</a> | ||
116 | {% endif %} | ||
117 | </td> | ||
118 | </tr> | ||
119 | |||
120 | |||
121 | {%endwith%} | ||
122 | {% else %} {# we don't have a build for this build request, mask the data with build request data #} | ||
123 | |||
124 | |||
125 | |||
126 | <tr class="data"> | ||
127 | <td class="outcome">{% if buildrequest.state == buildrequest.REQ_FAILED %}<i class="icon-minus-sign error"></i>{%else%}FIXME_build_request_state{%endif%}</td> | ||
128 | <td class="target"> | ||
129 | <a href="{% url "buildrequestdetails" buildrequest.project.id buildrequest.id %}"><span data-toggle="tooltip" {%if buildrequest.brtarget_set.all.count > 1%}title="Targets: {%for target in buildrequest.brtarget_set.all%}{{target.target}} {%endfor%}"{%endif%}>{{buildrequest.brtarget_set.all.0.target}} {%if buildrequest.brtarget_set.all.count > 1%}(+ {{buildrequest.brtarget_set.all.count|add:"-1"}}){%endif%} </span></a> | ||
130 | </td> | ||
131 | <td class="machine"> | ||
132 | <a href="{% url "buildrequestdetails" buildrequest.project.id buildrequest.id %}">{{buildrequest.machine}}</a> | ||
133 | </td> | ||
134 | {% if MANAGED %} | ||
135 | <td class="project"> | ||
136 | <a href="{% url 'project' buildrequest.project.id %}">{{buildrequest.project.name}}</a> | ||
137 | </td> | ||
138 | {% endif %} | ||
139 | <td class="started_on"> | ||
140 | <a href="{% url "buildrequestdetails" buildrequest.project.id buildrequest.id %}">{{buildrequest.created|date:"d/m/y H:i"}}</a> | ||
141 | </td> | ||
142 | <td class="completed_on"> | ||
143 | <a href="{% url "buildrequestdetails" buildrequest.project.id buildrequest.id %}">{{buildrequest.updated|date:"d/m/y H:i"}}</a> | ||
144 | </td> | ||
145 | <td class="failed_tasks error"> | ||
146 | </td> | ||
147 | <td class="errors_no"> | ||
148 | <a class="errors_no error" href="{% url "buildrequestdetails" buildrequest.project.id buildrequest.id %}#errors">{{buildrequest.brerror_set.all.count}} error{{buildrequest.brerror_set.all.count|pluralize}}</a> | ||
149 | </td> | ||
150 | <td class="warnings_no"> | ||
151 | </td> | ||
152 | <td class="time"> | ||
153 | {{br.timespent.total_seconds|sectohms}} | ||
154 | </td> | ||
155 | <td class="output"> {# we have no output here #} | ||
156 | </td> | ||
157 | </tr> | ||
158 | {%endif%} | ||
159 | {% endfor %} | ||
160 | |||
161 | |||
162 | {% include "basetable_bottom.html" %} | ||
163 | {% endif %} {# objects.paginator.count #} | ||
164 | {% endif %} {# empty #} | ||
165 | </div><!-- end row-fluid--> | ||
166 | |||
167 | {% endblock %} | ||