From e2fde84f16da017ba0d71aef6a1fa8e2b9255db4 Mon Sep 17 00:00:00 2001 From: Alexandru DAMIAN Date: Wed, 18 Dec 2013 19:50:45 +0000 Subject: toaster: clone Simple UI as base for Toaster GUI This patch clones the Simple UI to provide the base code for the development of the Toaster GUI. The clone takes the place of the application that was reserved for Javascript MVC code. The templates used for Simple UI are renamed to start with an "simple_" to prevent name resolution conflict with the Toaster GUI templates. Minor changes are made to the settings.py and urls.py in the toaster main section to account for the newly enabled application. Signed-off-by: Alexandru DAMIAN --- .../bldviewer/templates/simple_bpackage.html | 44 ++++++++++++++++++++++ 1 file changed, 44 insertions(+) create mode 100644 lib/toaster/bldviewer/templates/simple_bpackage.html (limited to 'lib/toaster/bldviewer/templates/simple_bpackage.html') diff --git a/lib/toaster/bldviewer/templates/simple_bpackage.html b/lib/toaster/bldviewer/templates/simple_bpackage.html new file mode 100644 index 000000000..37ceb6231 --- /dev/null +++ b/lib/toaster/bldviewer/templates/simple_bpackage.html @@ -0,0 +1,44 @@ +{% extends "simple_basebuildpage.html" %} + +{% block pagetitle %}Packages{% endblock %} +{% block pagetable %} + {% if not objects %} +

No packages were recorded for this target!

+ {% else %} + + + Name + Version + Recipe + Summary + Section + Description + Size on host disk (Bytes) + License + Dependencies List (all) + + + {% for package in objects %} + + + {{package.name}} ({{package.filelist_bpackage.count}} files) + {{package.version}}-{{package.revision}} + {%if package.recipe%}{{package.recipe.name}}{{package.package_name}}{%endif%} + + {{package.summary}} + {{package.section}} + {{package.description}} + {{package.size}} + {{package.license}} + +
+ {% for bpd in package.package_dependencies_source.all %} + {{bpd.dep_type}}: {{bpd.depends_on.name}}
+ {% endfor %} +
+ + {% endfor %} + + {% endif %} + +{% endblock %} -- cgit 1.2.3-korg