diff options
Diffstat (limited to 'bitbake/lib/toaster/toastergui/templates/layers.html')
-rw-r--r-- | bitbake/lib/toaster/toastergui/templates/layers.html | 132 |
1 files changed, 0 insertions, 132 deletions
diff --git a/bitbake/lib/toaster/toastergui/templates/layers.html b/bitbake/lib/toaster/toastergui/templates/layers.html deleted file mode 100644 index e6861c2708..0000000000 --- a/bitbake/lib/toaster/toastergui/templates/layers.html +++ /dev/null | |||
@@ -1,132 +0,0 @@ | |||
1 | {% extends "baseprojectpage.html" %} | ||
2 | {% load projecttags %} | ||
3 | {% load humanize %} | ||
4 | {% load static %} | ||
5 | |||
6 | {% block localbreadcrumb %} | ||
7 | <li>All compatible layers</li> | ||
8 | {% endblock %} | ||
9 | |||
10 | |||
11 | {% block projectinfomain %} | ||
12 | |||
13 | <script src="{% static 'js/layerBtn.js' %}"></script> | ||
14 | <script> | ||
15 | |||
16 | $(document).ready(function (){ | ||
17 | var ctx = { | ||
18 | projectLayers : {{projectlayerset}}, | ||
19 | }; | ||
20 | |||
21 | try { | ||
22 | layerBtnsInit(ctx); | ||
23 | } catch (e) { | ||
24 | document.write("Sorry, An error has occurred loading this page"); | ||
25 | console.warn(e); | ||
26 | } | ||
27 | }); | ||
28 | </script> | ||
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}} layer{{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 layers found | ||
36 | {%else%} | ||
37 | All compatible layers | ||
38 | {%endif%} | ||
39 | <i class="icon-question-sign get-help heading-help" title="This page lists all the layers 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 | |||
50 | {% if objects.paginator.count == 0 %} | ||
51 | {% if request.GET.filter or request.GET.search %} | ||
52 | <div class="row-fluid"> | ||
53 | <div class="alert"> | ||
54 | <form class="no-results input-append" id="searchform"> | ||
55 | <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 %} | ||
56 | <button class="btn" type="submit" value="Search">Search</button> | ||
57 | <button class="btn btn-link" onclick="javascript:$('#search').val('');searchform.submit()">Show all layers</button> | ||
58 | </form> | ||
59 | </div> | ||
60 | </div> | ||
61 | {% else %} | ||
62 | <div class="alert alert-info lead"> | ||
63 | <p>Toaster has no layer information. To generate layer information you can:</p> | ||
64 | <ul> | ||
65 | <li><a href="http://www.yoctoproject.org/docs/latest/toaster-manual/toaster-manual.html#layer-source">Configure a layer source</a></li> | ||
66 | <li><a href="{% url 'importlayer' %}">Import a layer</a></li> | ||
67 | </ul> | ||
68 | </div> | ||
69 | {% endif %} | ||
70 | |||
71 | {% else %} | ||
72 | |||
73 | {% include "basetable_top_layers.html" %} | ||
74 | {% for o in objects %} | ||
75 | <tr class="data"> | ||
76 | <td class="layer"><a href="{% url 'layerdetails' project.id o.id %}">{{o.layer.name}}</a></td> | ||
77 | <td class="description">{% if o.layer.summary %}{{o.layer.summary}}{%endif%}</td> | ||
78 | <td class="git-repo"><a href="{% url 'layerdetails' project.id o.pk %}"><code>{{o.layer.vcs_url}}</code></a> | ||
79 | {% if o.get_vcs_link_url %} | ||
80 | <a target="_blank" href="{{ o.get_vcs_link_url }}"><i class="icon-share get-info"></i></a> | ||
81 | {% endif %} | ||
82 | </td> | ||
83 | <td class="git-subdir" style="display: table-cell;"><a href="{% url 'layerdetails' project.id o.pk %}"><code>{{o.dirpath}}</code></a> | ||
84 | {% if o.dirpath and o.get_vcs_dirpath_link_url %} | ||
85 | <a target="_blank" href="{{ o.get_vcs_dirpath_link_url }}"><i class="icon-share get-info"></i></a> | ||
86 | {% endif %} | ||
87 | </td> | ||
88 | <td class="branch"> | ||
89 | {% with vcs_ref=o.get_vcs_reference %} | ||
90 | {% if vcs_ref|is_shaid %} | ||
91 | <a class="btn" data-content="<ul class='unstyled'> <li>{{vcs_ref}}</li> </ul>"> | ||
92 | {{vcs_ref|truncatechars:10}} | ||
93 | </a> | ||
94 | {% else %} | ||
95 | {{vcs_ref}} | ||
96 | {% endif %} | ||
97 | {% endwith %} | ||
98 | </td> | ||
99 | <td class="dependencies"> | ||
100 | {% with ods=o.dependencies.all%} | ||
101 | {% if ods.count %} | ||
102 | <a class="btn" | ||
103 | title="<a href='{% url "layerdetails" project.id o.pk %}'>{{o.layer.name}}</a> dependencies" | ||
104 | data-content="<ul class='unstyled'> | ||
105 | {% for i in ods%} | ||
106 | <li><a href='{% url "layerdetails" project.id i.depends_on.pk %}'>{{i.depends_on.layer.name}}</a></li> | ||
107 | {% endfor %} | ||
108 | </ul>"> | ||
109 | {{ods.count}} | ||
110 | </a> | ||
111 | {% endif %} | ||
112 | {% endwith %} | ||
113 | </td> | ||
114 | {% if project %} | ||
115 | <td class="add-del-layers" data-value="{{o.pk}}"> | ||
116 | <button class="btn btn-danger btn-block layer-exists-{{o.pk}} layerbtn" style="display:none;" data-layer='{ "id": {{o.pk}}, "name": "{{o.layer.name}}", "url": "{%url 'layerdetails' project.id o.pk%}"}' data-directive="remove" > | ||
117 | <i class="icon-trash"></i> | ||
118 | Delete layer | ||
119 | </button> | ||
120 | <button class="btn btn-block layer-add-{{o.pk}} layerbtn" data-layer='{ "id": {{o.pk}}, "name": "{{o.layer.name}}", "url": "{%url 'layerdetails' project.id o.pk%}"}' data-directive="add"> | ||
121 | <i class="icon-plus"></i> | ||
122 | Add layer | ||
123 | </button> | ||
124 | </td> | ||
125 | {% endif %} | ||
126 | </tr> | ||
127 | {% endfor %} | ||
128 | {% include "basetable_bottom.html" %} | ||
129 | |||
130 | {%endif%} | ||
131 | |||
132 | {% endblock %} | ||