From 84b239086dbd53c59d51f4e0779767a72af02d2b Mon Sep 17 00:00:00 2001 From: David Reyna Date: Fri, 17 Jan 2014 16:58:08 -0800 Subject: bitbake: toaster: Implementation of recipe detail views Add the new recipe detail page and update the view context accordingly. Rename the recipe summary page to 'recipes.html' and add the respective links to the recipe details page. The views are based on specifications found in attachments to https://bugzilla.yoctoproject.org/show_bug.cgi?id=4299 [YOCTO #4299] (Bitbake rev: d561000b6c4927ef6ec269e9ab7c70249b3c344a) Signed-off-by: David Reyna Signed-off-by: Richard Purdie --- .../lib/toaster/toastergui/templates/recipe.html | 308 ++++++++++++++++++--- .../lib/toaster/toastergui/templates/recipes.html | 52 ++++ 2 files changed, 318 insertions(+), 42 deletions(-) create mode 100755 bitbake/lib/toaster/toastergui/templates/recipes.html (limited to 'bitbake/lib/toaster/toastergui/templates') diff --git a/bitbake/lib/toaster/toastergui/templates/recipe.html b/bitbake/lib/toaster/toastergui/templates/recipe.html index 87c69b8d3c..5dea75382f 100644 --- a/bitbake/lib/toaster/toastergui/templates/recipe.html +++ b/bitbake/lib/toaster/toastergui/templates/recipe.html @@ -1,51 +1,275 @@ -{% extends "basebuildpage.html" %} +{% extends "basebuilddetailpage.html" %} + +{% load projecttags %} {% block localbreadcrumb %} -
  • Recipes
  • +
  • Recipes
  • +
  • {{object.name}}_{{object.version}}
  • {% endblock %} -{% block buildinfomain %} -{% include "basetable_top.html" %} - - - - Name - Version - Summary - Description - Section - License - License file - Homepage - Bugtracker - File_path - Recipe Dependency - - - {% for recipe in objects %} - - - {{recipe.name}} - {{recipe.version}} - {{recipe.summary}} - {{recipe.description}} - {{recipe.section}} - {{recipe.license}} - {{recipe.licensing_info}} - {{recipe.homepage}} - {{recipe.bugtracker}} - {{recipe.file_path}} - -
    - {% for rr in recipe.r_dependencies_recipe.all %} - {{rr.depends_on.name}}
    - {% endfor %} +{% block pagedetailinfomain %} + + + +
    + +
    + +
    + +
    +
    +
    +
    + + Layer +
    +
    {{layer.name}}
    +
    + + Layer directory +
    +
    {{layer.local_path}}
    +
    + + Recipe file +
    +
    {{object.file_path}}
    +
    + + Layer branch +
    +
    {{layer_version.branch}}
    +
    + + Layer commit +
    +
    {{layer_version.commit}}
    +
    + +

    Tasks

    + {% if not tasks %} +
    + {{object.name}}_{{object.version}} does not have any tasks in this build. +
    + {% else %} + + + + + + + + + + + {% for task in tasks %} + + + + + + + {% if task.task_executed %} + + {% else %} + + {% endif %} + + + + + + + {% endfor %} + +
    + + Order + + + Task + + + Executed + + + Outcome + + + Cache attempt +
    {{task.order}} + {{task.task_name}} + + ExecutedPrebuilt{{task.get_outcome_display}} + {% ifnotequal task.sstate_result task.SSTATE_NA %} + {{task.get_sstate_result_display}} + + {% endifnotequal %} +
    + {% endif %} +
    +
    + {% if not packages %} +
    + {{object.name}}_{{object.version}} does not build any packages. +
    + {% else %} + + + + + + + + + + + {% for package in packages %} + + + + + + + + {% endfor %} + + +
    + Package + + Version + + Size +
    {{package.name}}{{package.version}}-{{package.revision}}{{package.size}}
    + {% endif %}
    - - +
    + + {% if not object.r_dependencies_recipe.all %} +
    + {{object.name}}_{{object.version}} has no build dependencies. +
    + {% else %} + + + + + + + + + + {% for rr in object.r_dependencies_recipe.all %} + + + + + {% endfor %} + + +
    + Recipe + + Version +
    {{rr.depends_on.name}}{{rr.depends_on.version}}
    + {% endif %} - {% endfor %} +
    +
    + + {% if not object.r_dependencies_depends.all %} +
    + {{object.name}}_{{object.version}} has no reverse build dependencies. +
    + {% else %} + + + + + + + + + + {% for rr in object.r_dependencies_depends.all %} + + + + + {% endfor %} + + +
    + Recipe + + Version +
    {{rr.recipe.name}}{{rr.recipe.version}}
    + {% endif %} + +
    +
    +
    -{% include "basetable_bottom.html" %} +
    +

    About {{object.name}}

    +
    + {% if object.summary %} +
    Summary
    +

    {{object.summary}}

    + {% endif %} + {% if object.description %} +
    Description
    +

    {{object.description}}

    + {% endif %} + {% if object.homepage %} +
    Homepage
    +
    {{object.homepage}}
    + {% endif %} + {% if object.bugtracker %} +
    Bugtracker
    +
    {{object.bugtracker}}
    + {% endif %} + {% if object.section %} +
    + Section + +
    +
    {{object.section}}
    + {% endif %} + {% if object.license %} +
    License
    +
    {{object.license}}
    + {% endif %} +
    +
    {% endblock %} diff --git a/bitbake/lib/toaster/toastergui/templates/recipes.html b/bitbake/lib/toaster/toastergui/templates/recipes.html new file mode 100755 index 0000000000..2e0c2d1c6d --- /dev/null +++ b/bitbake/lib/toaster/toastergui/templates/recipes.html @@ -0,0 +1,52 @@ +{% extends "basebuildpage.html" %} + +{% block localbreadcrumb %} +
  • Recipes
  • +{% endblock %} + +{% block buildinfomain %} +
    +{% include "basetable_top.html" %} + + + + Name + Version + Summary + Description + Section + License + License file + Homepage + Bugtracker + File_path + Recipe Dependency + + + {% for recipe in objects %} + + + {{recipe.name}} + {{recipe.version}} + {{recipe.summary}} + {{recipe.description}} + {{recipe.section}} + {{recipe.license}} + {{recipe.licensing_info}} + {{recipe.homepage}} + {{recipe.bugtracker}} + {{recipe.file_path}} + +
    + {% for rr in recipe.r_dependencies_recipe.all %} + {{rr.depends_on.name}}
    + {% endfor %} +
    + + + + {% endfor %} + +{% include "basetable_bottom.html" %} +
    +{% endblock %} -- cgit v1.2.3-54-g00ecf