diff options
Diffstat (limited to 'bitbake/lib/toaster/toastergui/templates/machines.html')
-rw-r--r-- | bitbake/lib/toaster/toastergui/templates/machines.html | 67 |
1 files changed, 43 insertions, 24 deletions
diff --git a/bitbake/lib/toaster/toastergui/templates/machines.html b/bitbake/lib/toaster/toastergui/templates/machines.html index 650c47bd66..9930a94f4d 100644 --- a/bitbake/lib/toaster/toastergui/templates/machines.html +++ b/bitbake/lib/toaster/toastergui/templates/machines.html | |||
@@ -30,38 +30,57 @@ | |||
30 | {% include "layers_dep_modal.html" %} | 30 | {% include "layers_dep_modal.html" %} |
31 | <div class="page-header"> | 31 | <div class="page-header"> |
32 | <h1> | 32 | <h1> |
33 | {% if request.GET.search %} | ||
34 | {% if objects.paginator.count != 0 %} | ||
35 | {{objects.paginator.count}} machines found | ||
36 | {% else %} | ||
37 | No Machines found | ||
38 | {% endif %} | ||
39 | {% else %} | ||
40 | |||
33 | All machines | 41 | All machines |
34 | <i class="icon-question-sign get-help heading-help" title="This page lists all the machines compatible with the current project that Toaster knows about. They include community-created targets suitable for use on top of OpenEmbedded Core and any targets you have imported"></i> | 42 | <i class="icon-question-sign get-help heading-help" title="This page lists all the machines compatible with the current project that Toaster knows about. They include community-created targets suitable for use on top of OpenEmbedded Core and any targets you have imported"></i> |
43 | {% endif %} | ||
35 | </h1> | 44 | </h1> |
36 | </div> | 45 | </div> |
37 | |||
38 | <div class="alert alert-info lead" id="alert-area" style="display:none"> | 46 | <div class="alert alert-info lead" id="alert-area" style="display:none"> |
39 | <button type="button" class="close" id="dismiss-alert">×</button> | 47 | <button type="button" class="close" id="dismiss-alert">×</button> |
40 | <span id="alert-msg"></span> | 48 | <span id="alert-msg"></span> |
41 | </div> | 49 | </div> |
50 | {% if request.GET.search and objects.paginator.count == 0 %} | ||
51 | <div class="alert row-fluid"> | ||
52 | <form class="navbar-search input-append pull-left" id="searchform"> | ||
53 | <input class="input-xxlarge" id="search" name="search" type="text" placeholder="Search machines" value="{{request.GET.search}}"><a href="javascript:$('#search').val('');searchform.submit()" class="add-on btn" tabindex="-1"><i class="icon-remove"></i></a> | ||
54 | <input type="hidden" name="orderby" value=""> | ||
55 | <input type="hidden" name="page" value="1"> | ||
56 | <button class="btn" type="submit" value="Search">Search</button> | ||
57 | <button type="submit" class="btn btn-link"><a href="{%url 'machines' %}">Show all machines</a></button> | ||
58 | </form> | ||
59 | </div> | ||
60 | {% else %} | ||
61 | {% include "basetable_top.html" %} | ||
62 | {% for o in objects %} | ||
63 | <tr class="data"> | ||
64 | <td class="machine">{{o.name}}</td> | ||
65 | <td class="description">{{o.description}}</td> | ||
66 | <td class="layer"><a href="{%url "layerdetails" o.layer_version.id %}">{{o.layer_version.layer.name}}</a></td> | ||
67 | <td class="source">{{o.layer_source.name}}</td> | ||
68 | <td class="branch">{{o.layer_version.get_vcs_reference}}</td> | ||
69 | <td class="machinefile"><code>/machine/conf/{{o.name}}.conf</code><a href="{{o.get_vcs_machine_file_link_url}}" target="_blank"><i class="icon-share get-info"></i></a></td> | ||
70 | <td class="select-or-add"> | ||
71 | <a href="#" class="btn btn-block select-machine-btn" data-machine-name="{{o.name}}" data-layer-version-id="{{o.layer_version.id}}" | ||
72 | {%if o.layer_version.id not in project_layers %}style="display:none" {%endif%} >Select machine</a> | ||
73 | <a href="#" class="btn btn-block nopop add-layer" data-layer-version-id="{{o.layer_version.id}}" data-layer-name="{{o.layer_version.layer.name}}" {%if o.layer_version.id in project_layers %}style="display:none" {%endif%} | ||
74 | > | ||
75 | <i class="icon-plus"></i> | ||
76 | Add layer | ||
77 | <i class="icon-question-sign get-help" title="To build this machine, you must first add the {{o.layer_version.layer.name}} layer to your project"></i> | ||
78 | </a> | ||
79 | </td> | ||
80 | </tr> | ||
81 | {% endfor %} | ||
42 | 82 | ||
43 | {% include "basetable_top.html" %} | 83 | {% include "basetable_bottom.html" %} |
44 | {% for o in objects %} | 84 | {% endif %} |
45 | <tr class="data"> | ||
46 | <td class="machine">{{o.name}}</td> | ||
47 | <td class="description">{{o.description}}</td> | ||
48 | <td class="layer"><a href="{%url "layerdetails" o.layer_version.id %}">{{o.layer_version.layer.name}}</a></td> | ||
49 | <td class="source">{{o.layer_source.name}}</td> | ||
50 | <td class="branch">{{o.layer_version.commit}}</td> | ||
51 | <td class="machinefile"><code>/machine/conf/{{o.name}}.conf</code><a href="{{o.get_vcs_machine_file_link_url}}" target="_blank"><i class="icon-share get-info"></i></a></td> | ||
52 | <td class="select-or-add"> | ||
53 | <a href="#" class="btn btn-block select-machine-btn" data-machine-name="{{o.name}}" data-layer-version-id="{{o.layer_version.id}}" | ||
54 | {%if o.layer_version.id not in project_layers %}style="display:none" {%endif%} >Select machine</a> | ||
55 | <a href="#" class="btn btn-block nopop add-layer" data-layer-version-id="{{o.layer_version.id}}" data-layer-name="{{o.layer_version.layer.name}}" {%if o.layer_version.id in project_layers %}style="display:none" {%endif%} | ||
56 | > | ||
57 | <i class="icon-plus"></i> | ||
58 | Add layer | ||
59 | <i class="icon-question-sign get-help" title="To build this machine, you must first add the {{o.layer_version.layer.name}} layer to your project"></i> | ||
60 | </a> | ||
61 | </td> | ||
62 | </tr> | ||
63 | {% endfor %} | ||
64 | |||
65 | {% include "basetable_bottom.html" %} | ||
66 | 85 | ||
67 | {% endblock %} | 86 | {% endblock %} |