diff options
author | Alexandru DAMIAN <alexandru.damian@intel.com> | 2014-01-07 13:10:42 +0000 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2014-01-10 15:20:26 +0000 |
commit | 1b636173ca88e5ccca1992f9a12367a1189fa674 (patch) | |
tree | 0220e98e7b7a4027fb8c146bab9b3f81306fc9fe /bitbake/lib/toaster/toastergui/templates/configvars.html | |
parent | 5482409a370552809de75150350defef04ac7144 (diff) | |
download | poky-1b636173ca88e5ccca1992f9a12367a1189fa674.tar.gz |
bitbake: toaster: Toaster GUI, generic search, filter and order
This patch implements table searching, filtering and ordering, in a
generic mode reusable for all tables.
The search operates list of fields defined in the corresponding
class for each model, search_allowed_fields.
The search expression and filters are sent through GET requests
using a QuerySet-like input. The inputs are filtered and
validated before usage to prevent inadvertent or malicious use.
Filters and table headers are defined in the views for each table,
and rendered by generic code which is easily modified for various
tables.
The Build table and Configuration table are implemented using this
framework as an example of how it should be used.
[YOCTO #4249]
[YOCTO #4254]
[YOCTO #4255]
[YOCTO #4256]
[YOCTO #4257]
[YOCTO #4259]
[YOCTO #4260]
(Bitbake rev: 2ca15117e4bbda38cda07511d0ff317273f91528)
Signed-off-by: Alexandru DAMIAN <alexandru.damian@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'bitbake/lib/toaster/toastergui/templates/configvars.html')
-rw-r--r-- | bitbake/lib/toaster/toastergui/templates/configvars.html | 40 |
1 files changed, 40 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..8ce04b883d --- /dev/null +++ b/bitbake/lib/toaster/toastergui/templates/configvars.html | |||
@@ -0,0 +1,40 @@ | |||
1 | {% extends "basebuildpage.html" %} | ||
2 | {% block localbreadcrumb %} | ||
3 | <li>Configuration</li> | ||
4 | {% endblock %} | ||
5 | |||
6 | {% block buildinfomain %} | ||
7 | <!-- page title --> | ||
8 | <div class="row-fluid span10"> | ||
9 | <div class="page-header"> | ||
10 | <h1>Configuration</h1> | ||
11 | </div> | ||
12 | </div> | ||
13 | |||
14 | <!-- configuration table --> | ||
15 | <div class="row-fluid pull-right span10" id="navTab"> | ||
16 | <ul class="nav nav-pills"> | ||
17 | <li class=""><a href="{% url 'configuration' build.id %}">Summary</a></li> | ||
18 | <li class="active"><a href="#" >BitBake variables</a></li> | ||
19 | </ul> | ||
20 | |||
21 | |||
22 | <!-- variables --> | ||
23 | <div id="variables" class="tab-pane"> | ||
24 | {% include "basetable_top.html" %} | ||
25 | |||
26 | {% for variable in objects %} | ||
27 | <tr class="data"> | ||
28 | <td class="variable">{{variable.variable_name}}</td> | ||
29 | <td class="variable_value">{{variable.variable_value}}</td> | ||
30 | <td class="file">{% for vh in variable.variablehistory_set.all %}{{vh.operation}} in {{vh.file_name}}:{{vh.line_number}}<br/>{%endfor%}</td> | ||
31 | <td class="description">{% if variable.description %}{{variable.description}}{% endif %}</td> | ||
32 | </tr> | ||
33 | {% endfor %} | ||
34 | |||
35 | {% include "basetable_bottom.html" %} | ||
36 | |||
37 | </div> <!-- endvariables --> | ||
38 | |||
39 | </div> | ||
40 | {% endblock %} | ||