summaryrefslogtreecommitdiffstats
path: root/bitbake/lib/toaster/toastergui/templates/configvars.html
diff options
context:
space:
mode:
Diffstat (limited to 'bitbake/lib/toaster/toastergui/templates/configvars.html')
-rw-r--r--bitbake/lib/toaster/toastergui/templates/configvars.html147
1 files changed, 80 insertions, 67 deletions
diff --git a/bitbake/lib/toaster/toastergui/templates/configvars.html b/bitbake/lib/toaster/toastergui/templates/configvars.html
index f100b243ca..89d2fa446d 100644
--- a/bitbake/lib/toaster/toastergui/templates/configvars.html
+++ b/bitbake/lib/toaster/toastergui/templates/configvars.html
@@ -13,7 +13,7 @@
13{% block buildinfomain %} 13{% block buildinfomain %}
14<!-- page title --> 14<!-- page title -->
15<div class="col-md-10"> 15<div class="col-md-10">
16 <div class="page-header"> 16 <div class="page-header build-data">
17 <h1> 17 <h1>
18 {% if request.GET.filter and objects.paginator.count > 0 or request.GET.search and objects.paginator.count > 0 %} 18 {% if request.GET.filter and objects.paginator.count > 0 or request.GET.search and objects.paginator.count > 0 %}
19 {{objects.paginator.count}} variable{{objects.paginator.count|pluralize}} found 19 {{objects.paginator.count}} variable{{objects.paginator.count|pluralize}} found
@@ -27,7 +27,7 @@
27 27
28<!-- configuration table --> 28<!-- configuration table -->
29<div id="navTab"> 29<div id="navTab">
30 <ul class="nav nav-pills"> 30 <ul class="nav nav-tabs">
31 <li class=""><a href="{% url 'configuration' build.id %}">Summary</a></li> 31 <li class=""><a href="{% url 'configuration' build.id %}">Summary</a></li>
32 <li class="active"><a href="#" >BitBake variables</a></li> 32 <li class="active"><a href="#" >BitBake variables</a></li>
33 </ul> 33 </ul>
@@ -36,13 +36,22 @@
36 <div id="variables" class="tab-pane"> 36 <div id="variables" class="tab-pane">
37 37
38 {% if objects.paginator.count == 0 %} 38 {% if objects.paginator.count == 0 %}
39 <div class="alert"> 39 <div class="alert alert-warning">
40 <form class="no-results input-append" id="searchform"> 40 <form class="no-results form-inline" id="searchform">
41 <input id="search" name="search" class="input-xxlarge" type="text" value="{% if request.GET.search %}{{request.GET.search}}{% endif %}"/>{% if request.GET.search %}<a href="javascript:$('#search').val('');searchform.submit()" class="input-append-addon btn" tabindex="-1"><i class="glyphicon glyphicon-remove"></i></a>{% endif %} 41 <div class="form-group">
42 <button class="btn" type="submit" value="Search">Search</button> 42 <div class="btn-group">
43 <button class="btn btn-link" onclick="javascript:$('#search').val('');searchform.submit()">Show all variables</button> 43 <input class="form-control" id="search" name="search" type="text" value="{% if request.GET.search %}{{request.GET.search}}{% endif %}"/>
44 </form> 44 {% if request.GET.search %}
45 </div> 45 <a href="javascript:$('#search').val('');searchform.submit()" tabindex="-1">
46 <span class="remove-search-btn-variables glyphicon glyphicon-remove-circle"></span>
47 </a>
48 {% endif %}
49 </div>
50 </div>
51 <button class="btn btn-default" type="submit" value="Search">Search</button>
52 <button class="btn btn-link" onclick="javascript:$('#search').val('');searchform.submit()">Show all variables</button>
53 </form>
54 </div>
46 55
47 {% else %} 56 {% else %}
48 {% include "basetable_top.html" %} 57 {% include "basetable_top.html" %}
@@ -50,83 +59,87 @@
50 {% for variable in objects %} 59 {% for variable in objects %}
51 <tr class="data"> 60 <tr class="data">
52 <td class="variable_name"><a data-toggle="modal" href="#variable-{{variable.pk}}">{{variable.variable_name}}</a></td> 61 <td class="variable_name"><a data-toggle="modal" href="#variable-{{variable.pk}}">{{variable.variable_name}}</a></td>
53 <td class="variable_value"><a data-toggle="modal" href="#variable-{{variable.pk}}">{{variable.variable_value|truncatechars:153}}</a></td> 62 <td class="variable_value">{{variable.variable_value|truncatechars:153}}</td>
54 <td class="file"><a data-toggle="modal" href="#variable-{{variable.pk}}"> 63 <td class="file">
55 {% if variable.vhistory.all %} 64 {% if variable.vhistory.all %}
56 {% for path in variable.vhistory.all|filter_setin_files:file_filter %} 65 {% for path in variable.vhistory.all|filter_setin_files:file_filter %}
57 {{path}}<br/> 66 {{path}}<br/>
58 {% endfor %} 67 {% endfor %}
59 {% endif %} 68 {% endif %}
60 </a></td> 69 </td>
61 <td class="description"> 70 <td class="description">
62 {% if variable.description %} 71 {% if variable.description %}
63 {{variable.description}} 72 {{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"> 73 <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="glyphicon glyphicon-share get-info"></i></a> 74 <span class="glyphicon glyphicon-new-window get-info"></span></a>
66 {% endif %} 75 {% endif %}
67 </td> 76 </td>
68 </tr> 77 </tr>
69{% endfor %} 78{% endfor %}
70 79</tbody>
80</table>
81</div> <!-- table-responsive -->
71{% include "basetable_bottom.html" %} 82{% include "basetable_bottom.html" %}
72{% endif %} 83{% endif %}
73</div> <!-- endvariables --> 84</div> <!-- endvariables -->
74 85
75<!-- file list popups --> 86<!-- file list popups -->
76{% for variable in objects %} 87{% for variable in objects %}
77 {% if variable.vhistory.count %} 88{% if variable.vhistory.count %}
78 <div id="variable-{{variable.pk}}" class="modal in fade" tabindex="-1" role="dialog"> 89<div id="variable-{{variable.pk}}" class="modal fade" tabindex="-1" role="dialog">
79 <div class="modal-dialog"> 90 <div class="modal-dialog">
80 <div class="modal-content"> 91 <div class="modal-content">
81 <div class="modal-header"> 92 <div class="modal-header">
82 <button type="button" class="close" data-dismiss="modal" aria-hidden="true">x</button> 93 <button type="button" class="close" data-dismiss="modal" aria-hidden="true">x</button>
83 <h3>History of {{variable.variable_name}}</h3> 94 <h3>History of {{variable.variable_name}}</h3>
84 </div> 95 </div>
85 <div class="modal-body"> 96 <div class="modal-body">
86 {% if variable.variable_value %} 97 {% if variable.variable_value %}
87 {% if variable.variable_value|length < 570 %} 98 {% if variable.variable_value|length < 570 %}
88 <h4>{{variable.variable_name}} value is:</h4> 99 <h4>{{variable.variable_name}} value is:</h4>
89 <p> 100 <p>
90 {{variable.variable_value}} 101 {{variable.variable_value}}
91 </p> 102 </p>
92 {% else %} 103 {% else %}
93 <h4>{{variable.variable_name}} value is:</h4> 104 <h4>{{variable.variable_name}} value is:</h4>
94 <p> 105 <p>
95 <span>{{variable.variable_value|string_slice:':570'}} 106 <span>{{variable.variable_value|string_slice:':570'}}
96 <span class="full"> {{variable.variable_value|string_slice:'570:'}} 107 <span class="full"> {{variable.variable_value|string_slice:'570:'}}
97 </span> 108 </span>
98 <a class="btn btn-mini full-show">...</a> 109 <a href="#" class="full-show">...</a>
99 </span> 110 </span>
100 </p> 111 </p>
101 <a class="btn btn-mini full-hide">Collapse variable value <i class="icon-caret-up"></i> 112 <a href="#" class="full-hide">Collapse variable value <i class="icon-caret-up"></i>
102 </a> 113 </a>
103 {% endif %} 114 {% endif %}
104 {% else %} 115 {% else %}
105 <div class="alert alert-info">The value of <strong>{{variable.variable_name}}</strong> is an empty string</div> 116 <div class="alert alert-info">The value of <strong>{{variable.variable_name}}</strong> is an empty string</div>
106 {% endif %} 117 {% endif %}
107 <h4>The value was set in the following configuration files:</h4> 118 <h4>The value was set in the following configuration files:</h4>
108 <table class="table table-bordered table-hover"> 119 <div class="table-responsive">
109 <thead> 120 <table class="table table-bordered table-hover">
110 <tr> 121 <thead>
111 <th>Order</th> 122 <tr>
112 <th>Configuration file</th> 123 <th>Order</th>
113 <th>Operation</th> 124 <th>Configuration file</th>
114 <th>Line number</th> 125 <th>Operation</th>
115 </tr> 126 <th>Line</th>
116 </thead> 127 </tr>
117 <tbody> 128 </thead>
118 {% for vh in variable.vhistory.all %} 129 <tbody>
119 <tr> 130 {% for vh in variable.vhistory.all %}
120 <td>{{forloop.counter}}</td><td>{{vh.file_name}}</td><td>{{vh.operation}}</td><td>{{vh.line_number}}</td> 131 <tr>
121 </tr> 132 <td>{{forloop.counter}}</td><td class="file">{{vh.file_name}}</td><td>{{vh.operation}}</td><td>{{vh.line_number}}</td>
122 {%endfor%} 133 </tr>
123 </tbody> 134 {%endfor%}
124 </table> 135 </tbody>
125 </div> 136 </table>
126 </div><!-- /.modal-content --> 137 </div>
127 </div><!-- /.modal-dialog --> 138 </div>
128 </div><!-- /.modal --> 139 </div><!-- /.modal-content -->
129 {% endif %} 140 </div><!-- /.modal-dialog -->
141</div><!-- /.modal -->
142{% endif %}
130{% endfor %} 143{% endfor %}
131 144
132</div> <!-- buildinfomain --> 145</div> <!-- buildinfomain -->