summaryrefslogtreecommitdiffstats
path: root/bitbake/lib/toaster/bldviewer/templates
diff options
context:
space:
mode:
Diffstat (limited to 'bitbake/lib/toaster/bldviewer/templates')
-rw-r--r--bitbake/lib/toaster/bldviewer/templates/base.html30
-rw-r--r--bitbake/lib/toaster/bldviewer/templates/basebuildpage.html17
-rw-r--r--bitbake/lib/toaster/bldviewer/templates/basetable.html46
-rw-r--r--bitbake/lib/toaster/bldviewer/templates/bfile.html24
-rw-r--r--bitbake/lib/toaster/bldviewer/templates/bpackage.html44
-rw-r--r--bitbake/lib/toaster/bldviewer/templates/build.html43
-rw-r--r--bitbake/lib/toaster/bldviewer/templates/configuration.html20
-rw-r--r--bitbake/lib/toaster/bldviewer/templates/layer.html34
-rw-r--r--bitbake/lib/toaster/bldviewer/templates/package.html36
-rw-r--r--bitbake/lib/toaster/bldviewer/templates/recipe.html54
-rw-r--r--bitbake/lib/toaster/bldviewer/templates/task.html63
11 files changed, 411 insertions, 0 deletions
diff --git a/bitbake/lib/toaster/bldviewer/templates/base.html b/bitbake/lib/toaster/bldviewer/templates/base.html
new file mode 100644
index 0000000000..101880d3ea
--- /dev/null
+++ b/bitbake/lib/toaster/bldviewer/templates/base.html
@@ -0,0 +1,30 @@
1<!DOCTYPE html>
2{% load static %}
3<html>
4 <head>
5 <title>Toaster Simple Explorer</title>
6<script src="{% static 'js/jquery-2.0.3.js' %}">
7</script>
8<script src="{% static 'js/bootstrap.js' %}">
9</script>
10<link href="{% static 'css/bootstrap.css' %}" rel="stylesheet" type="text/css">
11 </head>
12
13<body style="height: 100%">
14<div style="width:100%; height: 100%; position:absolute">
15<div style="width: 100%; height: 3em" class="nav">
16 <ul class="nav nav-tabs">
17 <li><a href="{% url all-builds %}">All Builds</a></li>
18 <li><a href="{% url all-layers %}">All Layers</a></li>
19 </ul>
20</div>
21
22<div style="overflow-y:scroll; width: 100%; position: absolute; top: 3em; bottom:70px ">
23{% block pagecontent %}
24{% endblock %}
25</div>
26<div class="navbar" style="position: absolute; bottom: 0; width:100%"><br/>About Toaster | Yocto Project </div>
27</div>
28</body>
29</html>
30
diff --git a/bitbake/lib/toaster/bldviewer/templates/basebuildpage.html b/bitbake/lib/toaster/bldviewer/templates/basebuildpage.html
new file mode 100644
index 0000000000..873f271bab
--- /dev/null
+++ b/bitbake/lib/toaster/bldviewer/templates/basebuildpage.html
@@ -0,0 +1,17 @@
1{% extends "basetable.html" %}
2
3{% block pagename %}
4<ul class="nav nav-tabs" style="display: inline-block">
5 <li><a>Build {{build.target_set.all|join:"&nbsp;"}} at {{build.started_on}} : </a></li>
6 <li><a href="{% url task build.id %}"> Tasks </a></li>
7 <li><a href="{% url bpackage build.id %}"> Build Packages </a></li>
8 {% for t in build.target_set.all %}
9 {% if t.is_image %}
10 <li><a href="{% url tpackage build.id t.pk %}"> Packages for {{t.target}} </a> </li>
11 {% endif %}
12 {% endfor %}
13 <li><a href="{% url configuration build.id %}"> Configuration </a> </li>
14</ul>
15 <h1>Toaster - Build {% block pagetitle %} {% endblock %}</h1>
16{% endblock %}
17
diff --git a/bitbake/lib/toaster/bldviewer/templates/basetable.html b/bitbake/lib/toaster/bldviewer/templates/basetable.html
new file mode 100644
index 0000000000..083bcb82e9
--- /dev/null
+++ b/bitbake/lib/toaster/bldviewer/templates/basetable.html
@@ -0,0 +1,46 @@
1{% extends "base.html" %}
2
3{% block pagecontent %}
4<script>
5function showhideTableColumn(i, sh) {
6 if (sh)
7 $('td:nth-child('+i+'),th:nth-child('+i+')').show();
8 else
9 $('td:nth-child('+i+'),th:nth-child('+i+')').hide();
10}
11
12
13function filterTableRows(test) {
14 if (test.length > 0) {
15 var r = test.split(/[ ,]+/).map(function (e) { return new RegExp(e, 'i') });
16 $('tr.data').map( function (i, el) {
17 (! r.map(function (j) { return j.test($(el).html())}).reduce(function (c, p) { return c && p;} )) ? $(el).hide() : $(el).show();
18 });
19 } else
20 {
21 $('tr.data').show();
22 }
23}
24</script>
25<div style="margin-bottom: 0.5em">
26
27 {% block pagename %}
28 {% endblock %}
29 <div align="left" style="display:inline-block; width: 40%; margin-left: 2em"> Search: <input type="search" id="filterstring" style="width: 80%" onkeyup="filterTableRows($('#filterstring').val())" autocomplete="off">
30 </div>
31 {% if hideshowcols %}
32 <div align="right" style="display: inline-block; width: 40%">Show/Hide columns:
33 {% for i in hideshowcols %}
34 <span>{{i.name}} <input type="checkbox" id="ct{{i.name}}" onchange="showhideTableColumn({{i.order}}, $('#ct{{i.name}}').is(':checked'))" checked autocomplete="off"></span> |
35 {% endfor %}
36 </div>
37 {% endif %}
38</div>
39<div>
40 <table class="table table-striped table-condensed" style="width:95%">
41{% block pagetable %}
42{% endblock %}
43 </table>
44</div>
45
46{% endblock %}
diff --git a/bitbake/lib/toaster/bldviewer/templates/bfile.html b/bitbake/lib/toaster/bldviewer/templates/bfile.html
new file mode 100644
index 0000000000..d90f4fbddb
--- /dev/null
+++ b/bitbake/lib/toaster/bldviewer/templates/bfile.html
@@ -0,0 +1,24 @@
1{% extends "basebuildpage.html" %}
2
3{% block pagetitle %}Files for package {{files.0.bpackage.name}} {% endblock %}
4{% block pagetable %}
5 {% if not files %}
6 <p>No files were recorded for this package!</p>
7 {% else %}
8
9 <tr>
10 <th>Name</th>
11 <th>Size (Bytes)</th>
12 </tr>
13
14 {% for file in files %}
15
16 <tr class="data">
17 <td>{{file.path}}</td>
18 <td>{{file.size}}</td>
19
20 {% endfor %}
21
22 {% endif %}
23
24{% endblock %}
diff --git a/bitbake/lib/toaster/bldviewer/templates/bpackage.html b/bitbake/lib/toaster/bldviewer/templates/bpackage.html
new file mode 100644
index 0000000000..2e254dbad6
--- /dev/null
+++ b/bitbake/lib/toaster/bldviewer/templates/bpackage.html
@@ -0,0 +1,44 @@
1{% extends "basebuildpage.html" %}
2
3{% block pagetitle %}Packages{% endblock %}
4{% block pagetable %}
5 {% if not packages %}
6 <p>No packages were recorded for this target!</p>
7 {% else %}
8
9 <tr>
10 <th>Name</th>
11 <th>Version</th>
12 <th>Recipe</th>
13 <th>Summary</th>
14 <th>Section</th>
15 <th>Description</th>
16 <th>Size on host disk (KBytes)</th>
17 <th>License</th>
18 <th>Dependencies List (all)</th>
19 </tr>
20
21 {% for package in packages %}
22
23 <tr class="data">
24 <td><a name="#{{package.name}}" href="{% url bfile build.pk package.pk %}">{{package.name}} ({{package.filelist_bpackage.count}} files)</a></td>
25 <td>{{package.version}}-{{package.revision}}</td>
26 <td><a href="{% url layer_versions_recipes package.recipe.layer_version_id %}#{{package.recipe.name}}">{{package.recipe.name}}</a>{{package.package_name}}</a></td>
27
28 <td>{{package.summary}}</td>
29 <td>{{package.section}}</td>
30 <td>{{package.description}}</td>
31 <td>{{package.size}}</td>
32 <td>{{package.license}}</td>
33 <td>
34 <div style="height: 3em; overflow:auto">
35 {% for bpd in package.bpackage_dependencies_package.all %}
36 {{bpd.dep_type}}: {{bpd.depends_on}} <br/>
37 {% endfor %}
38 </div>
39 </td>
40 {% endfor %}
41
42 {% endif %}
43
44{% endblock %}
diff --git a/bitbake/lib/toaster/bldviewer/templates/build.html b/bitbake/lib/toaster/bldviewer/templates/build.html
new file mode 100644
index 0000000000..ab6e19643b
--- /dev/null
+++ b/bitbake/lib/toaster/bldviewer/templates/build.html
@@ -0,0 +1,43 @@
1{% extends "basetable.html" %}
2
3{% block pagename %}
4 <h1>Toaster - Builds</h1>
5{% endblock %}
6
7{% block pagetable %}
8
9 {% load projecttags %}
10 <tr>
11 <th>Outcome</th>
12 <th>Started On</th>
13 <th>Completed On</th>
14 <th>Target</th>
15 <th>Machine</th>
16 <th>Time</th>
17 <th>Errors</th>
18 <th>Warnings</th>
19 <th>Output</th>
20 <th>Log</th>
21 <th>Bitbake Version</th>
22 <th>Build Name</th>
23 </tr>
24 {% for build in builds %}
25 <tr class="data">
26 <td><a href="{% url configuration build.id %}">{{build.get_outcome_display}}</a></td>
27 <td>{{build.started_on}}</td>
28 <td>{{build.completed_on}}</td>
29 <td>{% for t in build.target_set.all %}<a href="{% url tpackage build.id t.id %}">{{t.target}}</a>{% if t.is_image %} (Img){% endif %}<br/>{% endfor %}</td>
30 <td>{{build.machine}}</td>
31 <td>{% time_difference build.started_on build.completed_on %}</td>
32 <td>{{build.errors_no}}:{% if build.errors_no %}{% for error in logs %}{% if error.build == build %}{% if error.level == 2 %}<p>{{error.message}}</p>{% endif %}{% endif %}{% endfor %}{% else %}None{% endif %}</td>
33 <td>{{build.warnings_no}}:{% if build.warnings_no %}{% for warning in logs %}{% if warning.build == build %}{% if warning.level == 1 %}<p>{{warning.message}}</p>{% endif %}{% endif %}{% endfor %}{% else %}None{% endif %}</td>
34 <td>{% if build.outcome == 0 %}{% for t in build.target_set.all %}{% if t.is_image %}{{build.image_fstypes}}{% endif %}{% endfor %}{% endif %}</td>
35 <td>{{build.cooker_log_path}}</td>
36 <td>{{build.bitbake_version}}</td>
37 <td>{{build.build_name}}</td>
38 </tr>
39
40 {% endfor %}
41{% endblock %}
42
43
diff --git a/bitbake/lib/toaster/bldviewer/templates/configuration.html b/bitbake/lib/toaster/bldviewer/templates/configuration.html
new file mode 100644
index 0000000000..052c37c4e8
--- /dev/null
+++ b/bitbake/lib/toaster/bldviewer/templates/configuration.html
@@ -0,0 +1,20 @@
1{% extends "basebuildpage.html" %}
2
3{% block pagetitle %}Configuration{% endblock %}
4{% block pagetable %}
5
6 <tr>
7 <th>Name</th>
8 <th>Value</th>
9 <th>Description</th>
10 </tr>
11
12 {% for variable in configuration %}
13
14 <tr class="data">
15 <td>{{variable.variable_name}}</td>
16 <td>{{variable.variable_value}}</td>
17 <td>{% if variable.description %}{{variable.description}}{% endif %}</td>
18 {% endfor %}
19
20{% endblock %}
diff --git a/bitbake/lib/toaster/bldviewer/templates/layer.html b/bitbake/lib/toaster/bldviewer/templates/layer.html
new file mode 100644
index 0000000000..fa4fd9bde8
--- /dev/null
+++ b/bitbake/lib/toaster/bldviewer/templates/layer.html
@@ -0,0 +1,34 @@
1{% extends "basetable.html" %}
2
3{% block pagename %}
4 <h1>Toaster - Layers</h1>
5{% endblock %}
6
7{% block pagetable %}
8 {% load projecttags %}
9
10 <tr>
11 <th>Name</th>
12 <th>Local Path</th>
13 <th>Layer Index URL</th>
14 <th>Known Versions</th>
15 </tr>
16
17 {% for layer in layers %}
18
19 <tr class="data">
20 <td>{{layer.name}}</td>
21 <td>{{layer.local_path}}</td>
22 <td><a href='{{layer.layer_index_url}}'>{{layer.layer_index_url}}</a></td>
23 <td><table>
24 {% for lv in layer.versions %}
25 <tr><td>
26 <a href="{% url layer_versions_recipes lv.id %}">({{lv.priority}}){{lv.branch}}:{{lv.commit}} ({{lv.count}} recipes)</a>
27 </td></tr>
28 {% endfor %}
29 </table></td>
30 </tr>
31
32 {% endfor %}
33
34{% endblock %}
diff --git a/bitbake/lib/toaster/bldviewer/templates/package.html b/bitbake/lib/toaster/bldviewer/templates/package.html
new file mode 100644
index 0000000000..642fcab9a1
--- /dev/null
+++ b/bitbake/lib/toaster/bldviewer/templates/package.html
@@ -0,0 +1,36 @@
1{% extends "basebuildpage.html" %}
2
3{% block pagetable %}
4 {% if not packages %}
5 <p>No packages were recorded for this target!</p>
6 {% else %}
7
8 <tr>
9 <th>Name</th>
10 <th>Version</th>
11 <th>Size (Bytes)</th>
12 <th>Recipe</th>
13 <th>Depends on</th>
14 </tr>
15
16 {% for package in packages %}
17
18 <tr class="data">
19 <td><a name="#{{package.name}}">{{package.name}}</a></td>
20 <td>{{package.version}}</td>
21 <td>{{package.size}}</td>
22 <td><a name="{{package.recipe.name}}.{{package.package_name}}">
23 <a href="{% url layer_versions_recipes package.recipe.layer_version_id %}#{{package.recipe.name}}">{{package.recipe.name}}</a>{{package.package_name}}</a></td>
24 <td>
25 <div style="height: 3em; overflow:auto">
26 {% for d in package.depends_on %}
27 <a href="#{{d.name}}">{{d.name}}</a><br/>
28 {% endfor %}
29 </div>
30 </td>
31
32 {% endfor %}
33
34 {% endif %}
35
36{% endblock %}
diff --git a/bitbake/lib/toaster/bldviewer/templates/recipe.html b/bitbake/lib/toaster/bldviewer/templates/recipe.html
new file mode 100644
index 0000000000..a62437066d
--- /dev/null
+++ b/bitbake/lib/toaster/bldviewer/templates/recipe.html
@@ -0,0 +1,54 @@
1{% extends "basetable.html" %}
2
3{% block pagename %}
4<ul class="nav nav-tabs" style="display: inline-block">
5 <li><a>Layer {{layer_version.layer.name}}&nbsp;:&nbsp;{{layer_version.branch}}&nbsp;:&nbsp;{{layer_version.commit}}&nbsp;:&nbsp;{{layer_version.priority}}</a></li>
6</ul>
7 <h1>Toaster - Recipes for a Layer</h1>
8{% endblock %}
9
10{% block pagetable %}
11 {% load projecttags %}
12
13 <tr>
14 </tr>
15 <th>Name</th>
16 <th>Version</th>
17 <th>Summary</th>
18 <th>Description</th>
19 <th>Section</th>
20 <th>License</th>
21 <th>License file</th>
22 <th>Homepage</th>
23 <th>Bugtracker</th>
24 <th>Author</th>
25 <th>File_path</th>
26 <th style="width: 30em">Recipe Dependency</th>
27
28
29 {% for recipe in recipes %}
30
31 <tr class="data">
32 <td><a name="{{recipe.name}}">{{recipe.name}}</a></td>
33 <td>{{recipe.version}}</td>
34 <td>{{recipe.summary}}</td>
35 <td>{{recipe.description}}</td>
36 <td>{{recipe.section}}</td>
37 <td>{{recipe.license}}</td>
38 <td>{{recipe.licensing_info}}</td>
39 <td>{{recipe.homepage}}</td>
40 <td>{{recipe.bugtracker}}</td>
41 <td>{{recipe.author}}</td>
42 <td>{{recipe.file_path}}</td>
43 <td>
44 <div style="height: 5em; overflow:auto">
45 {% for rr in recipe.r_dependencies_recipe.all %}
46 <a href="#{{rr.depends_on.name}}">{{rr.depends_on.name}}</a><br/>
47 {% endfor %}
48 </div>
49 </td>
50 </tr>
51
52 {% endfor %}
53
54{% endblock %}
diff --git a/bitbake/lib/toaster/bldviewer/templates/task.html b/bitbake/lib/toaster/bldviewer/templates/task.html
new file mode 100644
index 0000000000..e7253698cd
--- /dev/null
+++ b/bitbake/lib/toaster/bldviewer/templates/task.html
@@ -0,0 +1,63 @@
1{% extends "basebuildpage.html" %}
2
3{% block pagetitle %}Tasks{% endblock %}
4{% block pagetable %}
5 {% if not tasks %}
6 <p>No tasks were executed in this build!</p>
7 {% else %}
8
9 <tr>
10 <th>Order</th>
11 <th>Task</th>
12 <th>Recipe Version</th>
13 <th>Task Type</th>
14 <th>Checksum</th>
15 <th>Outcome</th>
16 <th>Message</th>
17 <th>Logfile</th>
18 <th>Time</th>
19 <th>CPU usage</th>
20 <th>Disk I/O</th>
21 <th>Script type</th>
22 <th>File path</th>
23 <th>Depends</th>
24 </tr>
25
26 {% for task in tasks %}
27
28 <tr class="data">
29 <td>{{task.order}}</td>
30 <td><a name="{{task.recipe.name}}.{{task.task_name}}">
31 <a href="{% url layer_versions_recipes task.recipe.layer_version_id %}#{{task.recipe.name}}">{{task.recipe.name}}</a>.{{task.task_name}}</a></td>
32 <td>{{task.recipe.version}}</td>
33
34 {% if task.task_executed %}
35 <td>Executed</td>
36 {% else %}
37 <td>Prebuilt</td>
38 {% endif %}
39
40 <td>{{task.sstate_checksum}}</td>
41 <td>{{task.get_outcome_display}}{% if task.provider %}</br>(by <a href="#{{task.provider.recipe.name}}.{{task.provider.task_name}}">{{task.provider.recipe.name}}.{{task.provider.task_name}}</a>){% endif %}</td>
42 <td><p>{{task.message}}</td>
43 <td><a target="_fileview" href="file:///{{task.logfile}}">{{task.logfile}}</a></td>
44 <td>{{task.elapsed_time}}</td>
45 <td>{{task.cpu_usage}}</td>
46 <td>{{task.disk_io}}</td>
47 <td>{{task.get_script_type_display}}</td>
48 <td><a target="_fileview" href="file:///{{task.recipe.file_path}}">{{task.recipe.file_path}}</a></td>
49 <td>
50 <div style="height: 3em; overflow:auto">
51 {% for tt in task.task_dependencies_task.all %}
52 <a href="#{{tt.depends_on.recipe.name}}.{{tt.depends_on.task_name}}">
53 {{tt.depends_on.recipe.name}}.{{tt.depends_on.task_name}}</a><br/>
54 {% endfor %}
55 </div>
56 </td>
57 </tr>
58
59 {% endfor %}
60
61 {% endif %}
62
63{% endblock %}