blob: ecd5a0f3d8082ba39d38f85b52efb0cbc9da801a (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
|
{% extends "basebuildpage.html" %}
{% block localbreadcrumb %}
<li>Configuration</li>
{% endblock %}
{% load projecttags %}
{% block buildinfomain %}
<!-- page title -->
<div class="row-fluid span10">
<div class="page-header">
<h1>
{% if request.GET.filter or request.GET.search and objects.count > 0 %}
{{objects.paginator.count}} variable{{objects.paginator.count|pluralize}} found
{%elif objects.paginator.count == 0%}
No variables
{%else%}
Configuration
{%endif%}
</h1>
</div>
</div>
<!-- configuration table -->
<div class="row-fluid pull-right span10" id="navTab">
<ul class="nav nav-pills">
<li class=""><a href="{% url 'configuration' build.id %}">Summary</a></li>
<li class="active"><a href="#" >BitBake variables</a></li>
</ul>
<!-- variables -->
<div id="variables" class="tab-pane">
{% include "basetable_top.html" %}
{% for variable in objects %}
<tr class="data">
<td class="variable_name"><a data-toggle="modal" href="#variable-{{variable.pk}}">{{variable.variable_name}}</a></td>
<td class="variable_value"><a data-toggle="modal" href="#variable-{{variable.pk}}">{{variable.variable_value|truncatechars:153}}</a></td>
<td class="file"><a data-toggle="modal" href="#variable-{{variable.pk}}">
{% if variable.vhistory.all %} {% autoescape off %}
{{variable.vhistory.all | filter_setin_files:file_filter }}
{% endautoescape %} {% endif %}
</a></td>
<td class="description">
{% if variable.description %}
{{variable.description}}
<a href="http://www.yoctoproject.org/docs/current/ref-manual/ref-manual.html#var-{{variable.variable_name|variable_parent_name}}" target="_blank">
<i class="icon-share get-info"></i></a>
{% endif %}
</td>
</tr>
{% endfor %}
{% include "basetable_bottom.html" %}
</div> <!-- endvariables -->
<!-- file list popups -->
{% for variable in objects %}
{% if variable.vhistory.count %}
<div id="variable-{{variable.pk}}" class="modal hide fade" tabindex="-1" role="dialog">
<div class="modal-header">
<button type="button" class="close" data-dismiss="modal" aria-hidden="true">x</button>
<h3>History of {{variable.variable_name}}</h3>
</div>
<div class="modal-body">
{% if variable.variable_value %}
{% if variable.variable_value|length < 570 %}
<h4>{{variable.variable_name}} value is:</h4>
<p>
{{variable.variable_value}}
</p>
{% else %}
<h4>{{variable.variable_name}} value is:</h4>
<p>
<span>{{variable.variable_value|string_slice:':570'}}
<span class="full"> {{variable.variable_value|string_slice:'570:'}}
</span>
<a class="btn btn-mini full-show">...</a>
</span>
</p>
<a class="btn btn-mini full-hide">Collapse variable value<i class="icon-caret-up"></i>
</a>
{% endif %}
{% else %}
<div class="alert alert-info">The value of <strong>{{variable.variable_name}}</strong> is an empty string</div>
{% endif %}
<h4>The value was set in the following configuration files:</h4>
<table class="table table-bordered table-hover">
<thead>
<tr>
<th>Order</th>
<th>Configuration file</th>
<th>Operation</th>
<th>Line number</th>
</tr>
</thead>
<tbody>
{% for vh in variable.vhistory.all %}
<tr>
<td>{{forloop.counter}}</td><td>{{vh.file_name}}</td><td>{{vh.operation}}</td><td>{{vh.line_number}}</td>
</tr>
{%endfor%}
</tbody>
</table>
</div>
</div>
{% endif %}
{% endfor %}
</div> <!-- buildinfomain -->
{% endblock %}
|