summaryrefslogtreecommitdiffstats
path: root/lib/toaster/toastergui/templates/package_included_reverse_dependencies.html
diff options
context:
space:
mode:
authorDave Lerner <dave.lerner@windriver.com>2014-01-23 11:47:41 -0600
committerRichard Purdie <richard.purdie@linuxfoundation.org>2014-02-17 15:38:26 +0000
commit6855925c06e7e5bb15ae9d0c08d77f3a9a2574bc (patch)
treea7f56564c7ef70f2fda419d9be3caf158234d280 /lib/toaster/toastergui/templates/package_included_reverse_dependencies.html
parent277d076d777f26f215f01cac59302bcf9cf44a9c (diff)
downloadbitbake-6855925c06e7e5bb15ae9d0c08d77f3a9a2574bc.tar.gz
toaster: Implementation of package detail views
Adds new package detail views. The views are based on specifications found in attachments to: https://bugzilla.yoctoproject.org/show_bug.cgi?id=4328 specifically: design-1.5.1-package-details.pdf, and design-1.1.1-included-package-details. This patch includes a redefinition of constant numbers for task dependency tasks. This is needed in order to achieve sorting criteria from the design. This change invalidates currently dependency information for currently existing builds, as it breaks compatibility. [YOCTO #4328] Signed-off-by: Dave Lerner <dave.lerner@windriver.com> Signed-off-by: Alexandru DAMIAN <alexandru.damian@intel.com>
Diffstat (limited to 'lib/toaster/toastergui/templates/package_included_reverse_dependencies.html')
-rw-r--r--lib/toaster/toastergui/templates/package_included_reverse_dependencies.html47
1 files changed, 47 insertions, 0 deletions
diff --git a/lib/toaster/toastergui/templates/package_included_reverse_dependencies.html b/lib/toaster/toastergui/templates/package_included_reverse_dependencies.html
new file mode 100644
index 000000000..9cfc7fe7c
--- /dev/null
+++ b/lib/toaster/toastergui/templates/package_included_reverse_dependencies.html
@@ -0,0 +1,47 @@
+{% extends "package_detail_base.html" %}
+{% 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 %}
+{% endblock title %}
+
+{% block tabcontent %}
+ {% with fullPackageSpec=package.name|add:"-"|add:package.version|add:"-"|add:package.revision|filtered_packagespec 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.
+ </div>
+ {% else %}
+ <table class="table table-bordered table-hover">
+ <thead>
+ <tr>
+ <th>Package</th>
+ <th>Package Version</th>
+ <th>Size</th>
+ </tr>
+ </thead>
+ {% for reverse_dep in reverse_deps|dictsort:"name" %}
+ <tbody>
+ <tr>
+ <td>
+ <a href="{% url 'package_included_detail' build.id target.id reverse_dep.dependent_id %}">
+ {{reverse_dep.name}}
+ </a>
+ </td>
+ <td>{{reverse_dep.version}}</td>
+ <td>{{reverse_dep.size|filtered_filesizeformat}}</td>
+ </tr>
+ </tbody>
+ {% endfor %}
+ </table>
+ {% endifequal %}
+ </div> <!-- end tab-pane -->
+ </div> <!-- end tab content -->
+ {% endwith %}
+{% endblock tabcontent %}