From acd4a1799d51a9f0b192d12b2c58387595b27bf7 Mon Sep 17 00:00:00 2001 From: Alexandru DAMIAN Date: Fri, 29 Aug 2014 16:41:59 +0100 Subject: bitbake: toaster: add project pages for machines, targets, layers We add new pages for the all-machines and all-targets project-related views. We update the existing template structure to create a base project view, similar to a base build view, that includes a breadcrumb. Updating existing all layers view to use the new structure. We update methods in the models to provide corrent information display. [YOCTO #6592] [YOCTO #6593] (Bitbake rev: 973f582a19441c1ec67061160e4c50ce03ed7b68) Signed-off-by: Alexandru DAMIAN Signed-off-by: Richard Purdie --- .../toastergui/templates/basebuilddetailpage.html | 0 .../toastergui/templates/baseprojectpage.html | 43 +++++ .../lib/toaster/toastergui/templates/layers.html | 9 +- .../lib/toaster/toastergui/templates/machines.html | 63 +++++++ .../lib/toaster/toastergui/templates/project.html | 69 ++++---- .../lib/toaster/toastergui/templates/recipes.html | 0 .../lib/toaster/toastergui/templates/targets.html | 186 +++++++++++++++++++++ 7 files changed, 328 insertions(+), 42 deletions(-) mode change 100755 => 100644 bitbake/lib/toaster/toastergui/templates/basebuilddetailpage.html create mode 100644 bitbake/lib/toaster/toastergui/templates/baseprojectpage.html mode change 100755 => 100644 bitbake/lib/toaster/toastergui/templates/layers.html create mode 100644 bitbake/lib/toaster/toastergui/templates/machines.html mode change 100755 => 100644 bitbake/lib/toaster/toastergui/templates/recipes.html create mode 100644 bitbake/lib/toaster/toastergui/templates/targets.html (limited to 'bitbake/lib/toaster/toastergui/templates') diff --git a/bitbake/lib/toaster/toastergui/templates/basebuilddetailpage.html b/bitbake/lib/toaster/toastergui/templates/basebuilddetailpage.html old mode 100755 new mode 100644 diff --git a/bitbake/lib/toaster/toastergui/templates/baseprojectpage.html b/bitbake/lib/toaster/toastergui/templates/baseprojectpage.html new file mode 100644 index 0000000000..54edaaf27c --- /dev/null +++ b/bitbake/lib/toaster/toastergui/templates/baseprojectpage.html @@ -0,0 +1,43 @@ +{% extends "base.html" %} +{% load projecttags %} +{% load humanize %} +{% block pagecontent %} + + +
+ +
+ + +
+ +
+ + + {% block projectinfomain %}{% endblock %} + + + +
+
+ + +{% endblock %} + diff --git a/bitbake/lib/toaster/toastergui/templates/layers.html b/bitbake/lib/toaster/toastergui/templates/layers.html old mode 100755 new mode 100644 index d7d159e1e6..bc6e5a3073 --- a/bitbake/lib/toaster/toastergui/templates/layers.html +++ b/bitbake/lib/toaster/toastergui/templates/layers.html @@ -1,7 +1,12 @@ -{% extends "base.html" %} +{% extends "baseprojectpage.html" %} {% load projecttags %} {% load humanize %} -{% block pagecontent %} + +{% block localbreadcrumb %} +
  • Layers
  • +{% endblock %} + +{% block projectinfomain %}
    +

    - Set machine - + Project machine +

    -

    - {{machine}} - +

    {{machine}} +

    -

    - Set distro - -

    -

    - {{distro}} - +

    +
    + Machine changes have a big impact on build outcome. + You cannot really compare the builds for the new machine with the previous ones. +
    +
    + + + Cancel +
    +

    View all machines

    +
    + - +
    + +

    Project details

    diff --git a/bitbake/lib/toaster/toastergui/templates/recipes.html b/bitbake/lib/toaster/toastergui/templates/recipes.html old mode 100755 new mode 100644 diff --git a/bitbake/lib/toaster/toastergui/templates/targets.html b/bitbake/lib/toaster/toastergui/templates/targets.html new file mode 100644 index 0000000000..3afdf0a5e9 --- /dev/null +++ b/bitbake/lib/toaster/toastergui/templates/targets.html @@ -0,0 +1,186 @@ +{% extends "baseprojectpage.html" %} +{% load projecttags %} +{% load humanize %} + +{% block localbreadcrumb %} +
  • Targets
  • +{% endblock %} + +{% block projectinfomain %} + + + + + + +{% include "basetable_top.html" %} + {% for o in objects %} + + + {{o.name}} ({{o.id}}, {{o.up_id}}) + + + {{o.version}} + {{o.description}} + + {{o.file_path}} + + + {{o.section}} + {{o.license}} + {{o.layer_version.layer.name}} + {{o.layer_source.name}} + {{o.layer_version.commit}} + + + + + Add layer + + + + + {% endfor %} +{% include "basetable_bottom.html" %} + + + + + + + + + + + + + + + + +{% endblock %} -- cgit v1.2.3-54-g00ecf