diff options
author | Tudor Florea <tudor.florea@enea.com> | 2015-10-09 22:59:03 +0200 |
---|---|---|
committer | Tudor Florea <tudor.florea@enea.com> | 2015-10-09 22:59:03 +0200 |
commit | 972dcfcdbfe75dcfeb777150c136576cf1a71e99 (patch) | |
tree | 97a61cd7e293d7ae9d56ef7ed0f81253365bb026 /bitbake/lib/toaster/toastergui/templates/configvars.html | |
download | poky-972dcfcdbfe75dcfeb777150c136576cf1a71e99.tar.gz |
initial commit for Enea Linux 5.0 arm
Signed-off-by: Tudor Florea <tudor.florea@enea.com>
Diffstat (limited to 'bitbake/lib/toaster/toastergui/templates/configvars.html')
-rw-r--r-- | bitbake/lib/toaster/toastergui/templates/configvars.html | 130 |
1 files changed, 130 insertions, 0 deletions
diff --git a/bitbake/lib/toaster/toastergui/templates/configvars.html b/bitbake/lib/toaster/toastergui/templates/configvars.html new file mode 100644 index 0000000000..1bd29aac0d --- /dev/null +++ b/bitbake/lib/toaster/toastergui/templates/configvars.html | |||
@@ -0,0 +1,130 @@ | |||
1 | {% extends "basebuildpage.html" %} | ||
2 | {% load projecttags %} | ||
3 | |||
4 | {% block localbreadcrumb %} | ||
5 | <li>Configuration</li> | ||
6 | {% endblock %} | ||
7 | |||
8 | {% block nav-configuration %} | ||
9 | <li class="active"><a href="{% url 'configuration' build.pk %}">Configuration</a></li> | ||
10 | {% endblock %} | ||
11 | |||
12 | {% block buildinfomain %} | ||
13 | <!-- page title --> | ||
14 | <div class="row-fluid span10"> | ||
15 | <div class="page-header"> | ||
16 | <h1> | ||
17 | {% if request.GET.filter and objects.paginator.count > 0 or request.GET.search and objects.paginator.count > 0 %} | ||
18 | {{objects.paginator.count}} variable{{objects.paginator.count|pluralize}} found | ||
19 | {%elif request.GET.filter and objects.paginator.count == 0 or request.GET.search and objects.paginator.count == 0 %} | ||
20 | No variables found | ||
21 | {%else%} | ||
22 | Configuration | ||
23 | {%endif%} | ||
24 | </h1> | ||
25 | </div> | ||
26 | </div> | ||
27 | |||
28 | <!-- configuration table --> | ||
29 | <div class="row-fluid pull-right span10" id="navTab"> | ||
30 | <ul class="nav nav-pills"> | ||
31 | <li class=""><a href="{% url 'configuration' build.id %}">Summary</a></li> | ||
32 | <li class="active"><a href="#" >BitBake variables</a></li> | ||
33 | </ul> | ||
34 | |||
35 | <!-- variables --> | ||
36 | <div id="variables" class="tab-pane"> | ||
37 | |||
38 | {% if objects.paginator.count == 0 %} | ||
39 | <div class="row-fluid"> | ||
40 | <div class="alert"> | ||
41 | <form class="no-results input-append" id="searchform"> | ||
42 | <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 %} | ||
43 | <button class="btn" type="submit" value="Search">Search</button> | ||
44 | <button class="btn btn-link" onclick="javascript:$('#search').val('');searchform.submit()">Show all variables</button> | ||
45 | </form> | ||
46 | </div> | ||
47 | </div> | ||
48 | |||
49 | {% else %} | ||
50 | {% include "basetable_top.html" %} | ||
51 | |||
52 | {% for variable in objects %} | ||
53 | <tr class="data"> | ||
54 | <td class="variable_name"><a data-toggle="modal" href="#variable-{{variable.pk}}">{{variable.variable_name}}</a></td> | ||
55 | <td class="variable_value"><a data-toggle="modal" href="#variable-{{variable.pk}}">{{variable.variable_value|truncatechars:153}}</a></td> | ||
56 | <td class="file"><a data-toggle="modal" href="#variable-{{variable.pk}}"> | ||
57 | {% if variable.vhistory.all %} {% autoescape off %} | ||
58 | {{variable.vhistory.all | filter_setin_files:file_filter }} | ||
59 | {% endautoescape %} {% endif %} | ||
60 | </a></td> | ||
61 | <td class="description"> | ||
62 | {% if variable.description %} | ||
63 | {{variable.description}} | ||
64 | <a href="http://www.yoctoproject.org/docs/current/ref-manual/ref-manual.html#var-{{variable.variable_name|variable_parent_name}}" target="_blank"> | ||
65 | <i class="icon-share get-info"></i></a> | ||
66 | {% endif %} | ||
67 | </td> | ||
68 | </tr> | ||
69 | {% endfor %} | ||
70 | |||
71 | {% include "basetable_bottom.html" %} | ||
72 | {% endif %} | ||
73 | </div> <!-- endvariables --> | ||
74 | |||
75 | <!-- file list popups --> | ||
76 | {% for variable in objects %} | ||
77 | {% if variable.vhistory.count %} | ||
78 | <div id="variable-{{variable.pk}}" class="modal hide fade" tabindex="-1" role="dialog"> | ||
79 | <div class="modal-header"> | ||
80 | <button type="button" class="close" data-dismiss="modal" aria-hidden="true">x</button> | ||
81 | <h3>History of {{variable.variable_name}}</h3> | ||
82 | </div> | ||
83 | <div class="modal-body"> | ||
84 | {% if variable.variable_value %} | ||
85 | {% if variable.variable_value|length < 570 %} | ||
86 | <h4>{{variable.variable_name}} value is:</h4> | ||
87 | <p> | ||
88 | {{variable.variable_value}} | ||
89 | </p> | ||
90 | {% else %} | ||
91 | <h4>{{variable.variable_name}} value is:</h4> | ||
92 | <p> | ||
93 | <span>{{variable.variable_value|string_slice:':570'}} | ||
94 | <span class="full"> {{variable.variable_value|string_slice:'570:'}} | ||
95 | </span> | ||
96 | <a class="btn btn-mini full-show">...</a> | ||
97 | </span> | ||
98 | </p> | ||
99 | <a class="btn btn-mini full-hide">Collapse variable value <i class="icon-caret-up"></i> | ||
100 | </a> | ||
101 | {% endif %} | ||
102 | {% else %} | ||
103 | <div class="alert alert-info">The value of <strong>{{variable.variable_name}}</strong> is an empty string</div> | ||
104 | {% endif %} | ||
105 | <h4>The value was set in the following configuration files:</h4> | ||
106 | <table class="table table-bordered table-hover"> | ||
107 | <thead> | ||
108 | <tr> | ||
109 | <th>Order</th> | ||
110 | <th>Configuration file</th> | ||
111 | <th>Operation</th> | ||
112 | <th>Line number</th> | ||
113 | </tr> | ||
114 | </thead> | ||
115 | <tbody> | ||
116 | {% for vh in variable.vhistory.all %} | ||
117 | <tr> | ||
118 | <td>{{forloop.counter}}</td><td>{{vh.file_name}}</td><td>{{vh.operation}}</td><td>{{vh.line_number}}</td> | ||
119 | </tr> | ||
120 | {%endfor%} | ||
121 | </tbody> | ||
122 | </table> | ||
123 | </div> | ||
124 | </div> | ||
125 | {% endif %} | ||
126 | {% endfor %} | ||
127 | |||
128 | </div> <!-- buildinfomain --> | ||
129 | |||
130 | {% endblock %} | ||