diff options
| author | Alexandru DAMIAN <alexandru.damian@intel.com> | 2015-06-11 15:00:08 +0100 |
|---|---|---|
| committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2015-06-26 09:27:31 +0100 |
| commit | 160563532f87bd901e1cc6972fe238be87a8b63c (patch) | |
| tree | 7fd59522b17516bb1656bf264198cc560a352e14 /bitbake/lib/toaster/toastergui/templates/build.html | |
| parent | 2c7ed96b567386d0f57ad8c088790a515d17b7af (diff) | |
| download | poky-160563532f87bd901e1cc6972fe238be87a8b63c.tar.gz | |
bitbake: toaster: refactor the builds pages
Taking out the managed mode-specific bits in build-related
pages, as there is always only one mode available.
Also refactors the build pages in order to always display
Build objects instead of BuildRequest objects.
(Bitbake rev: 6e46e1e3882b9770872d8a0bb459bc7d5d6bfed3)
Signed-off-by: Alexandru DAMIAN <alexandru.damian@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'bitbake/lib/toaster/toastergui/templates/build.html')
| -rw-r--r-- | bitbake/lib/toaster/toastergui/templates/build.html | 104 |
1 files changed, 0 insertions, 104 deletions
diff --git a/bitbake/lib/toaster/toastergui/templates/build.html b/bitbake/lib/toaster/toastergui/templates/build.html deleted file mode 100644 index f0b5ea529f..0000000000 --- a/bitbake/lib/toaster/toastergui/templates/build.html +++ /dev/null | |||
| @@ -1,104 +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 | // intiialize the date range controls | ||
| 19 | $(document).ready(function () { | ||
| 20 | date_init('started_on','{{last_date_from}}','{{last_date_to}}','{{dateMin_started_on}}','{{dateMax_started_on}}','{{daterange_selected}}'); | ||
| 21 | date_init('completed_on','{{last_date_from}}','{{last_date_to}}','{{dateMin_completed_on}}','{{dateMax_completed_on}}','{{daterange_selected}}'); | ||
| 22 | }); | ||
| 23 | </script> | ||
| 24 | |||
| 25 | <div class="row-fluid"> | ||
| 26 | |||
| 27 | {% include "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 | <div class="alert"> | ||
| 46 | <form class="no-results input-append" id="searchform"> | ||
| 47 | <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 %} | ||
| 48 | <button class="btn" type="submit" value="Search">Search</button> | ||
| 49 | <button class="btn btn-link" onclick="javascript:$('#search').val('');searchform.submit()">Show all builds</button> | ||
| 50 | </form> | ||
| 51 | </div> | ||
| 52 | </div> | ||
| 53 | |||
| 54 | |||
| 55 | {% else %} | ||
| 56 | {% include "basetable_top_buildprojects.html" %} | ||
| 57 | <!-- 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 --> | ||
| 58 | {% for build in objects %} | ||
| 59 | <tr class="data"> | ||
| 60 | <td class="outcome"> | ||
| 61 | <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> | ||
| 62 | </td> | ||
| 63 | <td class="target">{% for t in build.target_set.all %} <a href="{% url "builddashboard" build.id %}"> {{t.target}} </a> <br />{% endfor %}</td> | ||
| 64 | <td class="machine"><a href="{% url "builddashboard" build.id %}">{{build.machine}}</a></td> | ||
| 65 | <td class="started_on"><a href="{% url "builddashboard" build.id %}">{{build.started_on|date:"d/m/y H:i"}}</a></td> | ||
| 66 | <td class="completed_on"><a href="{% url "builddashboard" build.id %}">{{build.completed_on|date:"d/m/y H:i"}}</a></td> | ||
| 67 | <td class="failed_tasks error"> | ||
| 68 | {% query build.task_build outcome=4 order__gt=0 as exectask%} | ||
| 69 | {% if exectask.count == 1 %} | ||
| 70 | <a href="{% url "task" build.id exectask.0.id %}">{{exectask.0.recipe.name}}.{{exectask.0.task_name}}</a> | ||
| 71 | <a href="{% url 'build_artifact' build.id "tasklogfile" exectask.0.id %}"> | ||
| 72 | <i class="icon-download-alt" title="" data-original-title="Download task log file"></i> | ||
| 73 | </a> | ||
| 74 | {% elif exectask.count > 1%} | ||
| 75 | <a href="{% url "tasks" build.id %}?filter=outcome%3A4">{{exectask.count}} task{{exectask.count|pluralize}}</a> | ||
| 76 | {%endif%} | ||
| 77 | </td> | ||
| 78 | <td class="errors_no"> | ||
| 79 | {% if build.errors_no %} | ||
| 80 | <a class="errors_no error" href="{% url "builddashboard" build.id %}#errors">{{build.errors_no}} error{{build.errors_no|pluralize}}</a> | ||
| 81 | {%endif%} | ||
| 82 | </td> | ||
| 83 | <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> | ||
| 84 | <td class="time"><a href="{% url "buildtime" build.id %}">{{build.timespent|sectohms}}</a></td> | ||
| 85 | <td class="output"> | ||
| 86 | {% if build.outcome == build.SUCCEEDED %} | ||
| 87 | <a href="{%url "builddashboard" build.id%}#images">{{fstypes|get_dict_value:build.id}}</a> | ||
| 88 | {% endif %} | ||
| 89 | </td> | ||
| 90 | {% if build.project %} | ||
| 91 | <a href="{% url 'project' build.project.id %}">{{build.project.name}}</a> | ||
| 92 | {% endif %} | ||
| 93 | </td> | ||
| 94 | </tr> | ||
| 95 | |||
| 96 | {% endfor %} | ||
| 97 | |||
| 98 | |||
| 99 | {% include "basetable_bottom.html" %} | ||
| 100 | {% endif %} {# objects.paginator.count #} | ||
| 101 | {% endif %} {# empty #} | ||
| 102 | </div><!-- end row-fluid--> | ||
| 103 | |||
| 104 | {% endblock %} | ||
