summaryrefslogtreecommitdiffstats
path: root/bitbake/lib/toaster/toastergui/templates/recipes.html
diff options
context:
space:
mode:
authorDavid Reyna <David.Reyna@windriver.com>2014-02-06 21:06:27 -0800
committerRichard Purdie <richard.purdie@linuxfoundation.org>2014-02-17 15:38:53 +0000
commit77eeb4200efa28af080c8343333cd651aaeb3923 (patch)
tree9c286d72ac7752922a4cd64e9b57f582f35bea1d /bitbake/lib/toaster/toastergui/templates/recipes.html
parent994236e180ef7f05298efb9a0c58a39e9998f40f (diff)
downloadpoky-77eeb4200efa28af080c8343333cd651aaeb3923.tar.gz
bitbake: toaster: implement recipe summary page
Implement the updated design for the recipe summay page, with pop-up boxes for the dependecies and layer commit ids, column filtering, and column sorting support. [YOCTO #4294] (Bitbake rev: 92b71c8e6cfcd656866fbf9bd00bf184b223c5fa) Signed-off-by: David Reyna <David.Reyna@windriver.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'bitbake/lib/toaster/toastergui/templates/recipes.html')
-rwxr-xr-xbitbake/lib/toaster/toastergui/templates/recipes.html106
1 files changed, 69 insertions, 37 deletions
diff --git a/bitbake/lib/toaster/toastergui/templates/recipes.html b/bitbake/lib/toaster/toastergui/templates/recipes.html
index 2e0c2d1c6d..aa0610434f 100755
--- a/bitbake/lib/toaster/toastergui/templates/recipes.html
+++ b/bitbake/lib/toaster/toastergui/templates/recipes.html
@@ -1,51 +1,83 @@
1{% extends "basebuildpage.html" %} 1{% extends "basebuildpage.html" %}
2 2
3{% load projecttags %}
4
3{% block localbreadcrumb %} 5{% block localbreadcrumb %}
4<li>Recipes</li> 6<li>Recipes</li>
5{% endblock %} 7{% endblock %}
6 8
7{% block buildinfomain %} 9{% block buildinfomain %}
8<div class="row-fluid pull-right span10"> 10<div class="span10">
11<div class="page-header" style="margin-top:40px;">
12<h1>
13 {% if request.GET.filter or request.GET.search and objects.count > 0 %}
14 {{objects.paginator.count}} recipe{{objects.paginator.count|pluralize}} found
15 {%elif objects.paginator.count == 0%}
16 No Recipes
17 {%else%}
18 Recipes
19 {%endif%}
20 </h1>
21</div>
9{% include "basetable_top.html" %} 22{% include "basetable_top.html" %}
10 23
11 <tr> 24 {% for recipe in objects %}
12 </tr>
13 <th>Name</th>
14 <th>Version</th>
15 <th>Summary</th>
16 <th>Description</th>
17 <th>Section</th>
18 <th>License</th>
19 <th>License file</th>
20 <th>Homepage</th>
21 <th>Bugtracker</th>
22 <th>File_path</th>
23 <th style="width: 30em">Recipe Dependency</th>
24
25
26 {% for recipe in objects %}
27 25
28 <tr class="data"> 26 <tr class="data">
29 <td><a name="{{recipe.name}}" href="{% url "recipe" build.pk recipe.pk %}">{{recipe.name}}</a></td> 27 <td><a href="{% url "recipe" build.pk recipe.pk %}">{{recipe.name}}</a></td>
30 <td>{{recipe.version}}</td> 28 <td><a href="{% url "recipe" build.pk recipe.pk %}">{{recipe.version}}</a></td>
31 <td>{{recipe.summary}}</td> 29 <!-- Depends -->
32 <td>{{recipe.description}}</td> 30 <td class="depends_on">
33 <td>{{recipe.section}}</td> 31 {% if recipe.r_dependencies_recipe.all.count %}
34 <td>{{recipe.license}}</td> 32 <a class="btn"
35 <td>{{recipe.licensing_info}}</td> 33 title="<a href='{% url "recipe" build.pk recipe.pk %}#dependencies'>{{recipe.name}}</a> depends on"
36 <td>{{recipe.homepage}}</td> 34 data-content="<ul class='unstyled'>
37 <td>{{recipe.bugtracker}}</td> 35 {% for i in recipe.r_dependencies_recipe.all|dictsort:"depends_on.name"%}
38 <td>{{recipe.file_path}}</td> 36 <li><a href='{% url "recipe" build.pk i.depends_on.pk %}'>{{i.depends_on.name}}</a></li>
39 <td> 37 {% endfor %}
40 <div style="height: 5em; overflow:auto"> 38 </ul>">
41 {% for rr in recipe.r_dependencies_recipe.all %} 39 {{recipe.r_dependencies_recipe.all.count}}
42 <a href="#{{rr.depends_on.name}}">{{rr.depends_on.name}}</a><br/> 40 </a>
43 {% endfor %} 41 {% endif %}
44 </div> 42 </td>
45 </td> 43 <!-- Brought in by -->
46 </tr> 44 <td class="depends_by">
45 {% if recipe.r_dependencies_depends.all.count %}
46 <a class="btn"
47 title="<a href='{% url "recipe" build.pk recipe.pk %}#brought-in-by'>{{recipe.name}}</a> is brought in by"
48 data-content="<ul class='unstyled'>
49 {% for i in recipe.r_dependencies_depends.all|dictsort:"recipe.name"%}
50 <li><a href='{% url "recipe" build.pk i.recipe.pk %}'>{{i.recipe.name}}</a></li>
51 {% endfor %}
52 </ul>">
53 {{recipe.r_dependencies_depends.all.count}}
54 </a>
55 {% endif %}
56 </td>
57 <!-- Recipe file -->
58 <td class="recipe_file">{{recipe.file_path}}</td>
59 <!-- Section -->
60 <td class="recipe_section">{{recipe.section}}</td>
61 <!-- License -->
62 <td class="recipe_license">{{recipe.license}}</td>
63 <!-- Layer -->
64 <td class="layer_version__layer__name">{{recipe.layer_version.layer.name}}</td>
65 <!-- Layer branch -->
66 <td class="layer_version__branch">{{recipe.layer_version.branch}}</td>
67 <!-- Layer commit -->
68 <td class="layer_version__layer__commit">
69 <a class="btn"
70 data-content="<ul class='unstyled'>
71 <li>{{recipe.layer_version.commit}}</li>
72 </ul>">
73 {{recipe.layer_version.commit|truncatechars:13}}
74 </a>
75 </td>
76 <!-- Layer directory -->
77 <td class="layer_version__layer__local_path">{{recipe.layer_version.layer.local_path}}</td>
78 </tr>
47 79
48 {% endfor %} 80 {% endfor %}
49 81
50{% include "basetable_bottom.html" %} 82{% include "basetable_bottom.html" %}
51</div> 83</div>