diff options
| author | Michael Wood <michael.g.wood@intel.com> | 2015-05-11 18:51:28 +0100 |
|---|---|---|
| committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2015-05-14 18:04:09 +0100 |
| commit | 23f5b009e0ebf59cfcc9ae90a1084468fc88e42f (patch) | |
| tree | 06eb458cbd9a95dd635160adac7d90aeae6afea1 /bitbake/lib/toaster/toastergui/templates/targets.html | |
| parent | 7f8c44771cc6219ad7e58da7840fffbe93f11b39 (diff) | |
| download | poky-23f5b009e0ebf59cfcc9ae90a1084468fc88e42f.tar.gz | |
bitbake: toaster: Port All recipes, layers and machines to ToasterTables
Port of the main tables to the new ToasterTable widget.
(Bitbake rev: 6de539d5953b2dca2a9ed75556a59764337a194c)
Signed-off-by: Michael Wood <michael.g.wood@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'bitbake/lib/toaster/toastergui/templates/targets.html')
| -rw-r--r-- | bitbake/lib/toaster/toastergui/templates/targets.html | 142 |
1 files changed, 0 insertions, 142 deletions
diff --git a/bitbake/lib/toaster/toastergui/templates/targets.html b/bitbake/lib/toaster/toastergui/templates/targets.html deleted file mode 100644 index 224288ea35..0000000000 --- a/bitbake/lib/toaster/toastergui/templates/targets.html +++ /dev/null | |||
| @@ -1,142 +0,0 @@ | |||
| 1 | {% extends "baseprojectpage.html" %} | ||
| 2 | {% load projecttags %} | ||
| 3 | {% load humanize %} | ||
| 4 | {% load static %} | ||
| 5 | |||
| 6 | {% block localbreadcrumb %} | ||
| 7 | <li>All compatible recipes</li> | ||
| 8 | {% endblock %} | ||
| 9 | |||
| 10 | {% block projectinfomain %} | ||
| 11 | |||
| 12 | <script src="{% static 'js/layerBtn.js' %}"></script> | ||
| 13 | <script> | ||
| 14 | |||
| 15 | $(document).ready(function (){ | ||
| 16 | var ctx = { | ||
| 17 | projectLayers : {{projectlayerset}}, | ||
| 18 | }; | ||
| 19 | |||
| 20 | try { | ||
| 21 | layerBtnsInit(ctx); | ||
| 22 | } catch (e) { | ||
| 23 | document.write("Sorry, An error has occurred loading this page"); | ||
| 24 | console.warn(e); | ||
| 25 | } | ||
| 26 | }); | ||
| 27 | </script> | ||
| 28 | |||
| 29 | |||
| 30 | <div class="page-header"> | ||
| 31 | <h1> | ||
| 32 | {% if request.GET.filter and objects.paginator.count > 0 or request.GET.search and objects.paginator.count > 0 %} | ||
| 33 | {{objects.paginator.count}} recipe{{objects.paginator.count|pluralize}} found | ||
| 34 | {% elif request.GET.filter and objects.paginator.count == 0 or request.GET.search and objects.paginator.count == 0 %} | ||
| 35 | No recipes found | ||
| 36 | {%else%} | ||
| 37 | All compatible recipes | ||
| 38 | {%endif%} | ||
| 39 | <i class="icon-question-sign get-help heading-help" title="This page lists all the recipes compatible with the release selected for this project, which is {{project.release.description}}"></i> | ||
| 40 | </h1> | ||
| 41 | </div> | ||
| 42 | |||
| 43 | <div id="zone1alerts" style="display:none"> | ||
| 44 | <div class="alert alert-info lead"> | ||
| 45 | <button type="button" class="close" id="hide-alert">×</button> | ||
| 46 | <span id="alert-msg"></span> | ||
| 47 | </div> | ||
| 48 | </div> | ||
| 49 | {% if objects.paginator.count == 0 %} | ||
| 50 | {% if request.GET.filter or request.GET.search %} | ||
| 51 | <div class="row-fluid"> | ||
| 52 | <div class="alert"> | ||
| 53 | <form class="no-results input-append" id="searchform"> | ||
| 54 | <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 %} | ||
| 55 | <button class="btn" type="submit" value="Search">Search</button> | ||
| 56 | <button class="btn btn-link" onclick="javascript:$('#search').val('');searchform.submit()">Show all recipes</button> | ||
| 57 | </form> | ||
| 58 | </div> | ||
| 59 | </div> | ||
| 60 | {% else %} | ||
| 61 | <div class="alert alert-info lead"> | ||
| 62 | <p>Toaster has no recipe information. To generate recipe information you can:</p> | ||
| 63 | <ul> | ||
| 64 | <li><a href="http://www.yoctoproject.org/docs/latest/toaster-manual/toaster-manual.html#layer-source">Configure a layer source</a></li> | ||
| 65 | <li><a href="{% url 'importlayer' project.id %}">Import a layer</a>, then run a build</li> | ||
| 66 | </ul> | ||
| 67 | </div> | ||
| 68 | {% endif %} | ||
| 69 | |||
| 70 | {% else %} | ||
| 71 | |||
| 72 | {% include "basetable_top.html" %} | ||
| 73 | {% for o in objects %} | ||
| 74 | <tr class="data"> | ||
| 75 | <td class="target"> | ||
| 76 | {{o.name}} | ||
| 77 | <a target="_blank" href="{{o.get_layersource_view_url}}"><i class="icon-share get-info"></i></a> | ||
| 78 | </td> | ||
| 79 | <td class="version">{{o.version}}</td> | ||
| 80 | <td class="description">{% if o.description %}{{o.description}}{% else %}{{o.summary}}{%endif%}</td> | ||
| 81 | <td class="recipe-file"> | ||
| 82 | <code>{{o.file_path}}</code> | ||
| 83 | <a href="{{o.vcs_link_url}}" target="_blank"><i class="icon-share get-info"></i></a> | ||
| 84 | </td> | ||
| 85 | <td class="target-section">{{o.section}}</td> | ||
| 86 | <td class="license">{{o.license}}</td> | ||
| 87 | <td class="layer"><a href="{% url 'layerdetails' project.id o.preffered_layerversion.id%}">{{o.preffered_layerversion.layer.name}}</a></td> | ||
| 88 | <td class="branch"> | ||
| 89 | {% if o.preffered_layerversion.up_branch %} | ||
| 90 | {{o.preffered_layerversion.up_branch.name}} | ||
| 91 | {% else %} | ||
| 92 | <a class="btn" | ||
| 93 | data-content="<ul class='unstyled'> | ||
| 94 | <li>{{o.layer_version.commit}}</li> | ||
| 95 | </ul>"> | ||
| 96 | {{o.layer_version.commit|truncatechars:13}} | ||
| 97 | </a> | ||
| 98 | {% endif %} | ||
| 99 | </td> | ||
| 100 | <td class="add-layer" data-value="{{o.pk}}"> | ||
| 101 | <a href="{% url 'project' project.id %}#/targetbuild={{o.name}}" class="btn btn-block layer-exists-{{o.preffered_layerversion.pk}}" style="display:none; margin-top: 5px;" > | ||
| 102 | Build recipe | ||
| 103 | </a> | ||
| 104 | <button class="btn btn-block layerbtn layer-add-{{o.preffered_layerversion.pk}}" data-layer='{ "id": {{o.preffered_layerversion.pk}}, "name": "{{o.preffered_layerversion.layer.name}}", "url": "{%url 'layerdetails' project.id o.preffered_layerversion.pk%}"}' data-directive="add"> | ||
| 105 | <i class="icon-plus"></i> | ||
| 106 | Add layer | ||
| 107 | <i title="" class="icon-question-sign get-help" data-original-title="To build this target, you must first add the {{o.preffered_layerversion.layer.name}} layer to your project"></i> | ||
| 108 | </button> | ||
| 109 | </td> | ||
| 110 | </tr> | ||
| 111 | {% endfor %} | ||
| 112 | {% include "basetable_bottom.html" %} | ||
| 113 | |||
| 114 | <!-- Modals --> | ||
| 115 | |||
| 116 | <!-- 'Layer dependencies modal' --> | ||
| 117 | <div id="dependencies_modal" class="modal hide fade" tabindex="-1" role="dialog" aria-hidden="true"> | ||
| 118 | <form id="dependencies_modal_form"> | ||
| 119 | <div class="modal-header"> | ||
| 120 | <button type="button" class="close" data-dismiss="modal" aria-hidden="true">x</button> | ||
| 121 | <h3><span class="layer-name"></span> dependencies</h3> | ||
| 122 | </div> | ||
| 123 | <div class="modal-body"> | ||
| 124 | <p><strong class="layer-name"></strong> depends on some layers that are not added to your project. Select the ones you want to add:</p> | ||
| 125 | <ul class="unstyled" id="dependencies_list"> | ||
| 126 | </ul> | ||
| 127 | </div> | ||
| 128 | <div class="modal-footer"> | ||
| 129 | <button class="btn btn-primary" type="submit">Add layers</button> | ||
| 130 | <button class="btn" type="reset" data-dismiss="modal">Cancel</button> | ||
| 131 | </div> | ||
| 132 | </form> | ||
| 133 | </div> | ||
| 134 | |||
| 135 | {% endif %} | ||
| 136 | |||
| 137 | {% if project %} | ||
| 138 | <script> | ||
| 139 | </script> | ||
| 140 | {%endif%} | ||
| 141 | |||
| 142 | {% endblock %} | ||
