diff options
Diffstat (limited to 'bitbake/lib/toaster/toastergui/templates/configvars.html')
-rw-r--r-- | bitbake/lib/toaster/toastergui/templates/configvars.html | 123 |
1 files changed, 63 insertions, 60 deletions
diff --git a/bitbake/lib/toaster/toastergui/templates/configvars.html b/bitbake/lib/toaster/toastergui/templates/configvars.html index e40c225a3a..f100b243ca 100644 --- a/bitbake/lib/toaster/toastergui/templates/configvars.html +++ b/bitbake/lib/toaster/toastergui/templates/configvars.html | |||
@@ -12,7 +12,7 @@ | |||
12 | 12 | ||
13 | {% block buildinfomain %} | 13 | {% block buildinfomain %} |
14 | <!-- page title --> | 14 | <!-- page title --> |
15 | <div class="row-fluid span10"> | 15 | <div class="col-md-10"> |
16 | <div class="page-header"> | 16 | <div class="page-header"> |
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 %} |
@@ -24,10 +24,9 @@ | |||
24 | {%endif%} | 24 | {%endif%} |
25 | </h1> | 25 | </h1> |
26 | </div> | 26 | </div> |
27 | </div> | ||
28 | 27 | ||
29 | <!-- configuration table --> | 28 | <!-- configuration table --> |
30 | <div class="row-fluid pull-right span10" id="navTab"> | 29 | <div id="navTab"> |
31 | <ul class="nav nav-pills"> | 30 | <ul class="nav nav-pills"> |
32 | <li class=""><a href="{% url 'configuration' build.id %}">Summary</a></li> | 31 | <li class=""><a href="{% url 'configuration' build.id %}">Summary</a></li> |
33 | <li class="active"><a href="#" >BitBake variables</a></li> | 32 | <li class="active"><a href="#" >BitBake variables</a></li> |
@@ -37,15 +36,13 @@ | |||
37 | <div id="variables" class="tab-pane"> | 36 | <div id="variables" class="tab-pane"> |
38 | 37 | ||
39 | {% if objects.paginator.count == 0 %} | 38 | {% if objects.paginator.count == 0 %} |
40 | <div class="row-fluid"> | 39 | <div class="alert"> |
41 | <div class="alert"> | 40 | <form class="no-results input-append" id="searchform"> |
42 | <form class="no-results input-append" 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 %} |
43 | <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="add-on btn" tabindex="-1"><i class="icon-remove"></i></a>{% endif %} | 42 | <button class="btn" type="submit" value="Search">Search</button> |
44 | <button class="btn" type="submit" value="Search">Search</button> | 43 | <button class="btn btn-link" onclick="javascript:$('#search').val('');searchform.submit()">Show all variables</button> |
45 | <button class="btn btn-link" onclick="javascript:$('#search').val('');searchform.submit()">Show all variables</button> | 44 | </form> |
46 | </form> | 45 | </div> |
47 | </div> | ||
48 | </div> | ||
49 | 46 | ||
50 | {% else %} | 47 | {% else %} |
51 | {% include "basetable_top.html" %} | 48 | {% include "basetable_top.html" %} |
@@ -65,7 +62,7 @@ | |||
65 | {% if variable.description %} | 62 | {% if variable.description %} |
66 | {{variable.description}} | 63 | {{variable.description}} |
67 | <a href="http://www.yoctoproject.org/docs/current/ref-manual/ref-manual.html#var-{{variable.variable_name|variable_parent_name}}" target="_blank"> | 64 | <a href="http://www.yoctoproject.org/docs/current/ref-manual/ref-manual.html#var-{{variable.variable_name|variable_parent_name}}" target="_blank"> |
68 | <i class="icon-share get-info"></i></a> | 65 | <i class="glyphicon glyphicon-share get-info"></i></a> |
69 | {% endif %} | 66 | {% endif %} |
70 | </td> | 67 | </td> |
71 | </tr> | 68 | </tr> |
@@ -78,56 +75,62 @@ | |||
78 | <!-- file list popups --> | 75 | <!-- file list popups --> |
79 | {% for variable in objects %} | 76 | {% for variable in objects %} |
80 | {% if variable.vhistory.count %} | 77 | {% if variable.vhistory.count %} |
81 | <div id="variable-{{variable.pk}}" class="modal hide fade" tabindex="-1" role="dialog"> | 78 | <div id="variable-{{variable.pk}}" class="modal in fade" tabindex="-1" role="dialog"> |
82 | <div class="modal-header"> | 79 | <div class="modal-dialog"> |
83 | <button type="button" class="close" data-dismiss="modal" aria-hidden="true">x</button> | 80 | <div class="modal-content"> |
84 | <h3>History of {{variable.variable_name}}</h3> | 81 | <div class="modal-header"> |
85 | </div> | 82 | <button type="button" class="close" data-dismiss="modal" aria-hidden="true">x</button> |
86 | <div class="modal-body"> | 83 | <h3>History of {{variable.variable_name}}</h3> |
87 | {% if variable.variable_value %} | 84 | </div> |
88 | {% if variable.variable_value|length < 570 %} | 85 | <div class="modal-body"> |
89 | <h4>{{variable.variable_name}} value is:</h4> | 86 | {% if variable.variable_value %} |
90 | <p> | 87 | {% if variable.variable_value|length < 570 %} |
91 | {{variable.variable_value}} | 88 | <h4>{{variable.variable_name}} value is:</h4> |
92 | </p> | 89 | <p> |
93 | {% else %} | 90 | {{variable.variable_value}} |
94 | <h4>{{variable.variable_name}} value is:</h4> | 91 | </p> |
95 | <p> | 92 | {% else %} |
96 | <span>{{variable.variable_value|string_slice:':570'}} | 93 | <h4>{{variable.variable_name}} value is:</h4> |
97 | <span class="full"> {{variable.variable_value|string_slice:'570:'}} | 94 | <p> |
98 | </span> | 95 | <span>{{variable.variable_value|string_slice:':570'}} |
99 | <a class="btn btn-mini full-show">...</a> | 96 | <span class="full"> {{variable.variable_value|string_slice:'570:'}} |
100 | </span> | 97 | </span> |
101 | </p> | 98 | <a class="btn btn-mini full-show">...</a> |
102 | <a class="btn btn-mini full-hide">Collapse variable value <i class="icon-caret-up"></i> | 99 | </span> |
103 | </a> | 100 | </p> |
104 | {% endif %} | 101 | <a class="btn btn-mini full-hide">Collapse variable value <i class="icon-caret-up"></i> |
105 | {% else %} | 102 | </a> |
106 | <div class="alert alert-info">The value of <strong>{{variable.variable_name}}</strong> is an empty string</div> | 103 | {% endif %} |
107 | {% endif %} | 104 | {% else %} |
108 | <h4>The value was set in the following configuration files:</h4> | 105 | <div class="alert alert-info">The value of <strong>{{variable.variable_name}}</strong> is an empty string</div> |
109 | <table class="table table-bordered table-hover"> | 106 | {% endif %} |
110 | <thead> | 107 | <h4>The value was set in the following configuration files:</h4> |
111 | <tr> | 108 | <table class="table table-bordered table-hover"> |
112 | <th>Order</th> | 109 | <thead> |
113 | <th>Configuration file</th> | 110 | <tr> |
114 | <th>Operation</th> | 111 | <th>Order</th> |
115 | <th>Line number</th> | 112 | <th>Configuration file</th> |
116 | </tr> | 113 | <th>Operation</th> |
117 | </thead> | 114 | <th>Line number</th> |
118 | <tbody> | 115 | </tr> |
119 | {% for vh in variable.vhistory.all %} | 116 | </thead> |
120 | <tr> | 117 | <tbody> |
121 | <td>{{forloop.counter}}</td><td>{{vh.file_name}}</td><td>{{vh.operation}}</td><td>{{vh.line_number}}</td> | 118 | {% for vh in variable.vhistory.all %} |
122 | </tr> | 119 | <tr> |
123 | {%endfor%} | 120 | <td>{{forloop.counter}}</td><td>{{vh.file_name}}</td><td>{{vh.operation}}</td><td>{{vh.line_number}}</td> |
124 | </tbody> | 121 | </tr> |
125 | </table> | 122 | {%endfor%} |
126 | </div> | 123 | </tbody> |
127 | </div> | 124 | </table> |
125 | </div> | ||
126 | </div><!-- /.modal-content --> | ||
127 | </div><!-- /.modal-dialog --> | ||
128 | </div><!-- /.modal --> | ||
128 | {% endif %} | 129 | {% endif %} |
129 | {% endfor %} | 130 | {% endfor %} |
130 | 131 | ||
131 | </div> <!-- buildinfomain --> | 132 | </div> <!-- buildinfomain --> |
132 | 133 | ||
134 | </div> <!-- end 10-column section --> | ||
135 | |||
133 | {% endblock %} | 136 | {% endblock %} |