diff options
author | David Reyna <David.Reyna@windriver.com> | 2014-02-28 05:55:46 -0800 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2014-03-09 12:24:01 -0700 |
commit | 4717749fd651e6983a31e3cefe3f210d2646ca87 (patch) | |
tree | 5ba0090617b97f5d49b5c78ee84563a0cab6b7f5 /bitbake/lib/toaster/toastergui/templates/configvars.html | |
parent | 31d4bf8484ee42690386c6b7a6bd6c7a2be54464 (diff) | |
download | poky-4717749fd651e6983a31e3cefe3f210d2646ca87.tar.gz |
bitbake: toaster: implement the configuration pagedreyna/configure-detail-view
Update the configuration page with the file list pop-up, implement the file and description filters.
[YOCTO #4259]
(Bitbake rev: 54a767809960b66b2fe2d3bc46aa9c7e040c4ae3)
Signed-off-by: David Reyna <David.Reyna@windriver.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 | 98 |
1 files changed, 85 insertions, 13 deletions
diff --git a/bitbake/lib/toaster/toastergui/templates/configvars.html b/bitbake/lib/toaster/toastergui/templates/configvars.html index ae45119f39..cd41cca7e5 100644 --- a/bitbake/lib/toaster/toastergui/templates/configvars.html +++ b/bitbake/lib/toaster/toastergui/templates/configvars.html | |||
@@ -3,38 +3,110 @@ | |||
3 | <li>Configuration</li> | 3 | <li>Configuration</li> |
4 | {% endblock %} | 4 | {% endblock %} |
5 | 5 | ||
6 | {% load projecttags %} | ||
7 | |||
6 | {% block buildinfomain %} | 8 | {% block buildinfomain %} |
7 | <!-- page title --> | 9 | <!-- page title --> |
8 | <div class="row-fluid span10"> | 10 | <div class="row-fluid span10"> |
9 | <div class="page-header"> | 11 | <div class="page-header"> |
10 | <h1>Configuration</h1> | 12 | <h1> |
13 | {% if request.GET.filter or request.GET.search and objects.count > 0 %} | ||
14 | {{objects.paginator.count}} variable{{objects.paginator.count|pluralize}} found | ||
15 | {%elif objects.paginator.count == 0%} | ||
16 | No variables | ||
17 | {%else%} | ||
18 | Configuration | ||
19 | {%endif%} | ||
20 | </h1> | ||
11 | </div> | 21 | </div> |
12 | </div> | 22 | </div> |
13 | 23 | ||
14 | <!-- configuration table --> | 24 | <!-- configuration table --> |
15 | <div class="row-fluid pull-right span10" id="navTab"> | 25 | <div class="row-fluid pull-right span10" id="navTab"> |
16 | <ul class="nav nav-pills"> | 26 | <ul class="nav nav-pills"> |
17 | <li class=""><a href="{% url 'configuration' build.id %}">Summary</a></li> | 27 | <li class=""><a href="{% url 'configuration' build.id %}">Summary</a></li> |
18 | <li class="active"><a href="#" >BitBake variables</a></li> | 28 | <li class="active"><a href="#" >BitBake variables</a></li> |
19 | </ul> | 29 | </ul> |
20 | |||
21 | 30 | ||
22 | <!-- variables --> | 31 | <!-- variables --> |
23 | <div id="variables" class="tab-pane"> | 32 | <div id="variables" class="tab-pane"> |
24 | {% include "basetable_top.html" %} | 33 | {% include "basetable_top.html" %} |
25 | 34 | ||
26 | {% for variable in objects %} | 35 | {% for variable in objects %} |
27 | <tr class="data"> | 36 | <tr class="data"> |
28 | <td class="variable">{{variable.variable_name}}</td> | 37 | <td class="variable_name"><a data-toggle="modal" href="#variable-{{variable.pk}}">{{variable.variable_name}}</a></td> |
29 | <td class="variable_value">{{variable.variable_value}}</td> | 38 | <td class="variable_value"><a data-toggle="modal" href="#variable-{{variable.pk}}">{{variable.variable_value|truncatechars:153}}</a></td> |
30 | <td class="file">{% for vh in variable.vhistory_set.all %}{{vh.operation}} in {{vh.file_name}}:{{vh.line_number}}<br/>{%endfor%}</td> | 39 | <td class="file"><a data-toggle="modal" href="#variable-{{variable.pk}}"> |
31 | <td class="description">{% if variable.description %}{{variable.description}}{% endif %}</td> | 40 | {% if variable.vhistory.all %} {% autoescape off %} |
41 | {{variable.vhistory.all | filter_setin_files:file_filter }} | ||
42 | {% endautoescape %} {% endif %} | ||
43 | </a></td> | ||
44 | <td class="description"> | ||
45 | {% if variable.description %} | ||
46 | {{variable.description}} | ||
47 | <a href="http://www.yoctoproject.org/docs/current/ref-manual/ref-manual.html#var-{{variable.variable_name|variable_parent_name}}" target="_blank"> | ||
48 | <i class="icon-share get-info"></i></a> | ||
49 | {% endif %} | ||
50 | </td> | ||
32 | </tr> | 51 | </tr> |
33 | {% endfor %} | 52 | {% endfor %} |
34 | 53 | ||
35 | {% include "basetable_bottom.html" %} | 54 | {% include "basetable_bottom.html" %} |
55 | </div> <!-- endvariables --> | ||
36 | 56 | ||
37 | </div> <!-- endvariables --> | 57 | <!-- file list popups --> |
58 | {% for variable in objects %} | ||
59 | {% if variable.vhistory.count %} | ||
60 | <div id="variable-{{variable.pk}}" class="modal hide fade" tabindex="-1" role="dialog"> | ||
61 | <div class="modal-header"> | ||
62 | <button type="button" class="close" data-dismiss="modal" aria-hidden="true">x</button> | ||
63 | <h3>History of {{variable.variable_name}}</h3> | ||
64 | </div> | ||
65 | <div class="modal-body"> | ||
66 | {% if variable.variable_value %} | ||
67 | {% if variable.variable_value|length < 570 %} | ||
68 | <h4>{{variable.variable_name}} value is:</h4> | ||
69 | <p> | ||
70 | {{variable.variable_value}} | ||
71 | </p> | ||
72 | {% else %} | ||
73 | <h4>{{variable.variable_name}} value is:</h4> | ||
74 | <p> | ||
75 | <span>{{variable.variable_value|string_slice:':570'}} | ||
76 | <span class="full-variable"> {{variable.variable_value|string_slice:'570:'}} | ||
77 | </span> | ||
78 | <a class="btn btn-mini full-variable-show">...</a> | ||
79 | </span> | ||
80 | </p> | ||
81 | <a class="btn btn-mini full-variable-hide">Collapse variable value<i class="icon-caret-up"></i> | ||
82 | </a> | ||
83 | {% endif %} | ||
84 | {% else %} | ||
85 | <div class="alert alert-info">The value of <strong>{{variable.variable_name}}</strong> is an empty string</div> | ||
86 | {% endif %} | ||
87 | <h4>The value was set in the following configuration files:</h4> | ||
88 | <table class="table table-bordered table-hover"> | ||
89 | <thead> | ||
90 | <tr> | ||
91 | <th>Order</th> | ||
92 | <th>Configuration file</th> | ||
93 | <th>Operation</th> | ||
94 | <th>Line number</th> | ||
95 | </tr> | ||
96 | </thead> | ||
97 | <tbody> | ||
98 | {% for vh in variable.vhistory.all %} | ||
99 | <tr> | ||
100 | <td>{{forloop.counter}}</td><td>{{vh.file_name}}</td><td>{{vh.operation}}</td><td>{{vh.line_number}}</td> | ||
101 | </tr> | ||
102 | {%endfor%} | ||
103 | </tbody> | ||
104 | </table> | ||
105 | </div> | ||
106 | </div> | ||
107 | {% endif %} | ||
108 | {% endfor %} | ||
109 | |||
110 | </div> <!-- buildinfomain --> | ||
38 | 111 | ||
39 | </div> | ||
40 | {% endblock %} | 112 | {% endblock %} |