From 6855925c06e7e5bb15ae9d0c08d77f3a9a2574bc Mon Sep 17 00:00:00 2001 From: Dave Lerner Date: Thu, 23 Jan 2014 11:47:41 -0600 Subject: 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 Signed-off-by: Alexandru DAMIAN --- .../templates/package_built_dependencies.html | 112 +++++++++++++++++++++ 1 file changed, 112 insertions(+) create mode 100644 lib/toaster/toastergui/templates/package_built_dependencies.html (limited to 'lib/toaster/toastergui/templates/package_built_dependencies.html') diff --git a/lib/toaster/toastergui/templates/package_built_dependencies.html b/lib/toaster/toastergui/templates/package_built_dependencies.html new file mode 100644 index 000000000..c67f60e20 --- /dev/null +++ b/lib/toaster/toastergui/templates/package_built_dependencies.html @@ -0,0 +1,112 @@ +{% extends "package_detail_base.html" %} +{% load projecttags %} + +{% block tabcontent %} + {% with fullPackageSpec=package.name|add:"-"|add:package.version|add:"-"|add:package.revision|filtered_packagespec %} + +
+
+ {% ifequal runtime_deps|length 0 %} +
+ {{fullPackageSpec}} has no runtime dependencies. +
+ {% else %} +
+ {{fullPackageSpec}} is not included in any image. These are its projected runtime dependencies if you were to include it in future builds. +
+ + + + + + + + + {% for runtime_dep in runtime_deps %} + + {% ifequal runtime_dep.version '' %} + + + + + + + {% else %} + + + + + + {% endifequal %} + + {% endfor %} +
PackageVersionSize
{{runtime_dep.name}}{{runtime_dep.version}}
+ + {{runtime_dep.name}} + + {{runtime_dep.version}}{{runtime_dep.size|filtered_filesizeformat}}
+ {% endifequal %} + {% ifnotequal other_deps|length 0 %} +

Other runtime relationships

+ + + + + + + + + + + + {% for other_dep in other_deps %} + + {% ifequal other_dep.version '' %} + + + + + + + {% else %} + + + + + + + + {% endifequal %} + {% endfor %} +
PackageVersionSize + + Relationship type +
{{other_dep.name}}{{other_dep.version}} + {{other_dep.dep_type_display}} + +
+ + {{other_dep.name}} + + {{other_dep.version}}{{other_dep.size|filtered_filesizeformat}} + {{other_dep.dep_type_display}} + +
+ {% endifnotequal %} +
+
+ {% endwith %} +{% endblock tabcontent %} -- cgit 1.2.3-korg