summaryrefslogtreecommitdiffstats
path: root/lib/toaster/toastergui/templates/layer.html
diff options
context:
space:
mode:
authorAlexandru DAMIAN <alexandru.damian@intel.com>2013-12-18 19:50:45 +0000
committerPaul Eggleton <paul.eggleton@linux.intel.com>2014-01-10 14:13:39 +0000
commite2fde84f16da017ba0d71aef6a1fa8e2b9255db4 (patch)
treebcfc7c1b018a79fc69b5554513fe6021184e2fa4 /lib/toaster/toastergui/templates/layer.html
parente13acb4113ce75226664c3006a9776cc885e860d (diff)
downloadbitbake-e2fde84f16da017ba0d71aef6a1fa8e2b9255db4.tar.gz
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 <alexandru.damian@intel.com>
Diffstat (limited to 'lib/toaster/toastergui/templates/layer.html')
-rw-r--r--lib/toaster/toastergui/templates/layer.html34
1 files changed, 34 insertions, 0 deletions
diff --git a/lib/toaster/toastergui/templates/layer.html b/lib/toaster/toastergui/templates/layer.html
new file mode 100644
index 000000000..410d766c6
--- /dev/null
+++ b/lib/toaster/toastergui/templates/layer.html
@@ -0,0 +1,34 @@
+{% extends "basetable.html" %}
+
+{% block pagename %}
+ <h1>Toaster - Layers</h1>
+{% endblock %}
+
+{% block pagetable %}
+ {% load projecttags %}
+
+ <tr>
+ <th>Name</th>
+ <th>Local Path</th>
+ <th>Layer Index URL</th>
+ <th>Known Versions</th>
+ </tr>
+
+ {% for layer in objects %}
+
+ <tr class="data">
+ <td>{{layer.name}}</td>
+ <td>{{layer.local_path}}</td>
+ <td><a href='{{layer.layer_index_url}}'>{{layer.layer_index_url}}</a></td>
+ <td><table>
+ {% for lv in layer.versions %}
+ <tr><td>
+ <a href="{% url "layer_versions_recipes" lv.id %}">({{lv.priority}}){{lv.branch}}:{{lv.commit}} ({{lv.count}} recipes)</a>
+ </td></tr>
+ {% endfor %}
+ </table></td>
+ </tr>
+
+ {% endfor %}
+
+{% endblock %}