summaryrefslogtreecommitdiffstats
path: root/bitbake/lib/toaster/toastergui/templates
diff options
context:
space:
mode:
Diffstat (limited to 'bitbake/lib/toaster/toastergui/templates')
-rw-r--r--bitbake/lib/toaster/toastergui/templates/package_built_dependencies.html10
-rw-r--r--bitbake/lib/toaster/toastergui/templates/package_built_detail.html8
-rw-r--r--bitbake/lib/toaster/toastergui/templates/package_detail_base.html36
-rw-r--r--bitbake/lib/toaster/toastergui/templates/package_included_dependencies.html31
-rw-r--r--bitbake/lib/toaster/toastergui/templates/package_included_detail.html14
-rw-r--r--bitbake/lib/toaster/toastergui/templates/package_included_reverse_dependencies.html17
6 files changed, 73 insertions, 43 deletions
diff --git a/bitbake/lib/toaster/toastergui/templates/package_built_dependencies.html b/bitbake/lib/toaster/toastergui/templates/package_built_dependencies.html
index 4932f74..a2011d6 100644
--- a/bitbake/lib/toaster/toastergui/templates/package_built_dependencies.html
+++ b/bitbake/lib/toaster/toastergui/templates/package_built_dependencies.html
@@ -2,7 +2,6 @@
{% load projecttags %}
{% block tabcontent %}
- {% with fullPackageSpec=package.name|add:"-"|add:package.version|add:"-"|add:package.revision|filtered_packagespec %}
<ul class="nav nav-pills">
<li class="">
<a href="{% url 'package_built_detail' build.id package.id %}">
@@ -21,11 +20,11 @@
<div class="tab-pane active" id="dependencies">
{% ifequal runtime_deps|length 0 %}
<div class="alert alert-info">
- <strong>{{fullPackageSpec}}</strong> has no runtime dependencies.
+ <strong>{{package.fullpackagespec}}</strong> has no runtime dependencies.
</div>
{% else %}
<div class="alert alert-info">
- <strong>{{fullPackageSpec}}</strong> is <strong>not included</strong> in any image. These are its projected runtime dependencies if you were to include it in future builds.
+ <strong>{{package.fullpackagespec}}</strong> is <strong>not included</strong> in any image. These are its projected runtime dependencies if you were to include it in future builds.
</div>
<table class="table table-bordered table-hover">
<thead>
@@ -56,7 +55,7 @@
</tr>
{% endifequal %}
{% endfor %}
- </tbody>
+ </tbody>
</table>
{% endifequal %}
{% ifnotequal other_deps|length 0 %}
@@ -72,7 +71,7 @@
Relationship type
</th>
</tr>
- </thead>
+ </thead>
<tbody>
{% for other_dep in other_deps %}
{% ifequal other_dep.version '' %}
@@ -106,5 +105,4 @@
{% endifnotequal %}
</div> <!-- tab-pane -->
</div> <!-- tab-content -->
- {% endwith %}
{% endblock tabcontent %}
diff --git a/bitbake/lib/toaster/toastergui/templates/package_built_detail.html b/bitbake/lib/toaster/toastergui/templates/package_built_detail.html
index d8f0b75..6ccd405 100644
--- a/bitbake/lib/toaster/toastergui/templates/package_built_detail.html
+++ b/bitbake/lib/toaster/toastergui/templates/package_built_detail.html
@@ -2,7 +2,7 @@
{% load projecttags %}
{% block tabcontent %}
- {% with fullPackageSpec=package.name|add:"-"|add:package.version|add:"-"|add:package.revision|filtered_packagespec packageFileCount=package.buildfilelist_package.count %}
+ {% with packageFileCount=package.buildfilelist_package.count %}
<!-- Generated Files -->
{% if package.buildtargetlist_package.count == 0 %}
{# Not included case #}
@@ -21,7 +21,7 @@
<!-- Package file list or if empty, alert pane -->
{% if packageFileCount > 0 %}
<div class="alert alert-info">
- {{fullPackageSpec}} is <strong>not included</strong> in any image. These are the files that would be added to an image root file system if you were to include it in future builds.
+ {{package.fullpackagespec}} is <strong>not included</strong> in any image. These are the files that would be added to an image root file system if you were to include it in future builds.
</div>
<table class="table table-bordered table-hover">
<thead>
@@ -29,7 +29,7 @@
<th>File</th>
<th>Size</th>
</tr>
- </thead>
+ </thead>
<tbody>
{% for file in package.buildfilelist_package.all|dictsort:"path" %}
<tr>
@@ -42,7 +42,7 @@
{% else %}
<div class="alert alert-info">
- <strong>{{fullPackageSpec}}</strong> does not generate any files.
+ <strong>{{package.fullpackagespec}}</strong> does not generate any files.
</div>
{% endif %}
diff --git a/bitbake/lib/toaster/toastergui/templates/package_detail_base.html b/bitbake/lib/toaster/toastergui/templates/package_detail_base.html
index 6925aec..5ec9dd7 100644
--- a/bitbake/lib/toaster/toastergui/templates/package_detail_base.html
+++ b/bitbake/lib/toaster/toastergui/templates/package_detail_base.html
@@ -1,24 +1,45 @@
{% extends "basebuilddetailpage.html" %}
{% load projecttags %}
+{% block extraheadcontent %}
+ <!-- functions to format package 'installed_package' alias -->
+ <script>
+ function fmtAliasHelp(package_name, alias, hover) {
+ var r = null;
+ if (alias != null && alias != '') {
+ r = '<span class="muted"> as ' + alias + '&nbsp';
+ r += '<i class="icon-question-sign get-help';
+ if (hover) {
+ r+= ' hover-help';
+ }
+ else {
+ r+= ' heading-help';
+ }
+ r += '"';
+ title = package_name + ' was renamed at packaging time and was installed on your system as ' + alias;
+ r += ' title="' + title + '">';
+ r += '</i>';
+ r += '</span>';
+ document.write(r);
+ }
+ }
+ </script>
+{% endblock extraheadcontent %}
{% block localbreadcrumb %}
-{% with fullPackageSpec=package.name|add:"_"|add:package.version|add:"-"|add:package.revision|filtered_packagespec %}
{% if target %}
<li><a href="{% url "target" build.id target.id %}">{{target.target}}</a></li>
+ <li>{{package.fullpackagespec}} {% if package.alias %} as {{package.alias}}{% endif %}</li>
{% else %}
<li><a href="{% url "packages" build.id %}"> Packages </a></li>
+ <li>{{package.fullpackagespec}}</li>
{% endif %}
- <li>{{fullPackageSpec}}</li>
-{% endwith %}
{% endblock localbreadcrumb %}
{% block pagedetailinfomain %}
-{% with fullPackageSpec=package.name|add:"_"|add:package.version|add:"-"|add:package.revision|filtered_packagespec %}
-
<div class="row span11">
<div class="page-header">
{% block title %}
- <h1>{{fullPackageSpec}}</h1>
+ <h1>{{package.fullpackagespec}}</h1>
{% endblock title %}
</div> <!-- page-header -->
</div> <!-- row span11 page-header -->
@@ -93,7 +114,7 @@
{{package.recipe.layer_version.layer.name}}
{% if package.recipe.layer_version.layer.name|format_none_and_zero != "" %}
{% comment %}
- # Removed per team meeting of 1/29/2014 until
+ # Removed per team meeting of 1/29/2014 until
# decision on index search algorithm
<a href="http://layers.openembedded.org" target="_blank">
<i class="icon-share get-info"></i>
@@ -121,5 +142,4 @@
</dl>
</div> <!-- row4 well -->
{% endblock twocolumns %}
-{% endwith %}
{% endblock pagedetailinfomain %}
diff --git a/bitbake/lib/toaster/toastergui/templates/package_included_dependencies.html b/bitbake/lib/toaster/toastergui/templates/package_included_dependencies.html
index c76774a..e06e073 100644
--- a/bitbake/lib/toaster/toastergui/templates/package_included_dependencies.html
+++ b/bitbake/lib/toaster/toastergui/templates/package_included_dependencies.html
@@ -2,13 +2,15 @@
{% load projecttags %}
{% block title %}
- {% with fullPackageSpec=package.name|add:"_"|add:package.version|add:"-"|add:package.revision|filtered_packagespec %}
- <h1>{{fullPackageSpec}} <small>({{target.target}})</small></h1>
- {% endwith %}
+ <h1>
+ {{package.fullpackagespec}}
+ <script> fmtAliasHelp("{{package.name}}", "{{package.alias}}", false) </script>
+ <small>({{target.target}})</small>
+ </h1>
{% endblock title %}
{% block tabcontent %}
- {% with fullPackageSpec=package.name|add:"_"|add:package.version|add:"-"|add:package.revision|filtered_packagespec packageFileCount=package.buildfilelist_package.count %}
+ {% with packageFileCount=package.buildfilelist_package.count %}
{% include "package_included_tabs.html" with active_tab="dependencies" %}
<div class="tab-content">
<div class="tab-pane active" id="dependencies">
@@ -29,22 +31,22 @@
<a href="{% url 'package_included_detail' build.id target.id runtime_dep.depends_on_id %}">
{{runtime_dep.name}}
</a>
+ <script>fmtAliasHelp("{{runtime_dep.name}}", "{{runtime_dep.alias}}", true)</script>
</td>
{% else %}
<td>
{{runtime_dep.name|format_vpackage_namehelp}}
</td>
{% endif %}
-
- <td>{{runtime_dep.version}}</td>
- <td>{{runtime_dep.size|filtered_filesizeformat}}</td>
+ <td>{{runtime_dep.version}}&nbsp;</td>
+ <td>{{runtime_dep.size|filtered_filesizeformat}}&nbsp;</td>
</tr>
{% endfor %}
- </tbody>
+ </tbody>
</table>
{% else %}
<div class="alert alert-info">
- <strong>{{fullPackageSpec}}</strong> has no runtime dependencies.
+ <strong>{{package.fullpackagespec}}</strong> has no runtime dependencies.
</div>
{% endifnotequal %}
@@ -61,7 +63,7 @@
Relationship type
</th>
</tr>
- </thead>
+ </thead>
<tbody>
{% for other_dep in other_deps %}
{% if other_dep.installed %}
@@ -70,6 +72,9 @@
<td>
<a href="{% url 'package_included_detail' build.id target.id other_dep.depends_on_id %}">
{{other_dep.name}}
+ <script>
+ fmtAliasHelp("{{other_dep.name}}","{{other_dep.alias}}", true)
+ </script>
</a>
</td>
{% else %}
@@ -77,8 +82,8 @@
{{other_dep.name|format_vpackage_namehelp}}
</td>
{% endif %}
- <td>{{other_dep.version}}</td>
- <td>{{other_dep.size|filtered_filesizeformat}}</td>
+ <td>{{other_dep.version}}&nbsp;</td>
+ <td>{{other_dep.size|filtered_filesizeformat}}&nbsp;</td>
<td>
{{other_dep.dep_type_display}}
<i class="icon-question-sign get-help hover-help" title="{{other_dep.dep_type_help}}" ></i>
@@ -96,7 +101,7 @@
</tr>
{% endif %}
{% endfor %}
- </tbody>
+ </tbody>
</table>
{% endifnotequal %}
</div> <!-- end tab-pane -->
diff --git a/bitbake/lib/toaster/toastergui/templates/package_included_detail.html b/bitbake/lib/toaster/toastergui/templates/package_included_detail.html
index ce4f1cb..e89ebdf 100644
--- a/bitbake/lib/toaster/toastergui/templates/package_included_detail.html
+++ b/bitbake/lib/toaster/toastergui/templates/package_included_detail.html
@@ -2,13 +2,17 @@
{% load projecttags %}
{% block title %}
-{% with fullPackageSpec=package.name|add:"_"|add:package.version|add:"-"|add:package.revision|filtered_packagespec %}
- <h1>{{fullPackageSpec}} <small>({{target.target}})</small></h1>
-{% endwith %}
+ <h1>
+ {{package.fullpackagespec}}
+ <script>
+ fmtAliasHelp("{{package.name}}", "{{package.alias}}", false)
+ </script>
+ <small>({{target.target}})</small>
+ </h1>
{% endblock title %}
{% block tabcontent %}
-{% with fullPackageSpec=package.name|add:"_"|add:package.version|add:"-"|add:package.revision|filtered_packagespec packageFileCount=package.buildfilelist_package.count %}
+{% with packageFileCount=package.buildfilelist_package.count %}
{% include "package_included_tabs.html" with active_tab="detail" %}
<div class="tab-content">
<div class="tab-pane active" id="files">
@@ -36,7 +40,7 @@
{% else %}
<div class="alert alert-info">
- <strong>{{fullPackageSpec}}</strong> does not generate any files.
+ <strong>{{package.fullpackagespec}}</strong> does not generate any files.
</div>
{% endif %}
</div> <!-- end tab-pane -->
diff --git a/bitbake/lib/toaster/toastergui/templates/package_included_reverse_dependencies.html b/bitbake/lib/toaster/toastergui/templates/package_included_reverse_dependencies.html
index 8653ae0..1efcb1a 100644
--- a/bitbake/lib/toaster/toastergui/templates/package_included_reverse_dependencies.html
+++ b/bitbake/lib/toaster/toastergui/templates/package_included_reverse_dependencies.html
@@ -2,20 +2,22 @@
{% load projecttags %}
{% block title %}
- {% with fullPackageSpec=package.name|add:"_"|add:package.version|add:"-"|add:package.revision|filtered_packagespec %}
- <h1>{{fullPackageSpec}} <small>({{target.target}})</small></h1>
- {% endwith %}
+ <h1>
+ {{package.fullpackagespec}}
+ <script> fmtAliasHelp("{{package.name}}", "{{package.alias}}", false) </script>
+ <small>({{target.target}})</small>
+ </h1>
{% endblock title %}
{% block tabcontent %}
- {% with fullPackageSpec=package.name|add:"_"|add:package.version|add:"-"|add:package.revision|filtered_packagespec packageFileCount=package.buildfilelist_package.count %}
+ {% with packageFileCount=package.buildfilelist_package.count %}
{% include "package_included_tabs.html" with active_tab="reverse" %}
<div class="tab-content">
<div class="tab-pane active" id="brought-in-by">
{% ifequal reverse_deps|length 0 %}
<div class="alert alert-info">
- <strong>{{fullPackageSpec}}</strong> has no reverse runtime dependencies.
+ <strong>{{package.fullpackagespec}}</strong> has no reverse runtime dependencies.
</div>
{% else %}
<table class="table table-bordered table-hover">
@@ -34,6 +36,7 @@
<a href="{% url 'package_included_detail' build.id target.id reverse_dep.dependent_id %}">
{{reverse_dep.name}}
</a>
+ <script>fmtAliasHelp("{{reverse_dep.name}}", "{{reverse_dep.alias}}", true)</script>
</td>
{% else %}
<td>
@@ -41,8 +44,8 @@
</td>
{% endif %}
- <td>{{reverse_dep.version}}</td>
- <td>{{reverse_dep.size|filtered_filesizeformat}}</td>
+ <td>{{reverse_dep.version}}&nbsp;</td>
+ <td>{{reverse_dep.size|filtered_filesizeformat}}&nbsp;</td>
</tr>
{% endfor %}
</tbody>
OpenPOWER on IntegriCloud