diff options
author | Michael Wood <michael.g.wood@intel.com> | 2016-05-26 16:12:21 +0100 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2016-06-15 08:35:04 +0100 |
commit | 32d1e2dd25f288790450db48766cf115854712ba (patch) | |
tree | 0957025538fdd29b111884891f14becc55dcc018 /bitbake/lib/toaster/toastergui/templates/recipes.html | |
parent | a786ac14f1c6c02c38dc141125035445413f1250 (diff) | |
download | poky-32d1e2dd25f288790450db48766cf115854712ba.tar.gz |
bitbake: toaster: port Built recipes table to toastertables
(Bitbake rev: 9434d3925bb7768876aae8d649ea00b8d849c6e9)
Signed-off-by: Michael Wood <michael.g.wood@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'bitbake/lib/toaster/toastergui/templates/recipes.html')
-rw-r--r-- | bitbake/lib/toaster/toastergui/templates/recipes.html | 111 |
1 files changed, 0 insertions, 111 deletions
diff --git a/bitbake/lib/toaster/toastergui/templates/recipes.html b/bitbake/lib/toaster/toastergui/templates/recipes.html deleted file mode 100644 index fe06f8b205..0000000000 --- a/bitbake/lib/toaster/toastergui/templates/recipes.html +++ /dev/null | |||
@@ -1,111 +0,0 @@ | |||
1 | {% extends "basebuildpage.html" %} | ||
2 | |||
3 | {% load projecttags %} | ||
4 | |||
5 | {% block title %} Recipes - {{build.target_set.all|dictsort:"target"|join:", "}} {{build.machine}} - {{build.project.name}} - Toaster {% endblock %} | ||
6 | {% block localbreadcrumb %} | ||
7 | <li>Recipes</li> | ||
8 | {% endblock %} | ||
9 | |||
10 | {% block nav-recipes %} | ||
11 | <li class="active"><a href="{% url 'recipes' build.pk %}">Recipes</a></li> | ||
12 | {% endblock %} | ||
13 | |||
14 | {% block buildinfomain %} | ||
15 | <div class="col-md-10"> | ||
16 | <div class="page-header"> | ||
17 | <h1> | ||
18 | {% if request.GET.search and objects.paginator.count > 0 %} | ||
19 | {{objects.paginator.count}} recipe{{objects.paginator.count|pluralize}} found | ||
20 | {%elif request.GET.search and objects.paginator.count == 0%} | ||
21 | No recipes found | ||
22 | {%else%} | ||
23 | Recipes | ||
24 | {%endif%} | ||
25 | </h1> | ||
26 | </div> | ||
27 | |||
28 | {% if objects.paginator.count == 0 %} | ||
29 | <div class="alert"> | ||
30 | <form class="no-results input-append" id="searchform"> | ||
31 | <input id="search" name="search" class="input-xxlarge" type="text" value="{%if request.GET.search%}{{request.GET.search}}{%endif%}"/>{% if request.GET.search %}<a href="javascript:$('#search').val('');searchform.submit()" class="input-append-addon btn" tabindex="-1"><i class="glyphicon glyphicon-remove"></i></a>{% endif %} | ||
32 | <button class="btn" type="submit" value="Search">Search</button> | ||
33 | <button class="btn btn-link" onclick="javascript:$('#search').val('');searchform.submit()">Show all recipes</button> | ||
34 | </form> | ||
35 | </div> | ||
36 | |||
37 | {% else %} | ||
38 | {% include "basetable_top.html" %} | ||
39 | |||
40 | {% for recipe in objects %} | ||
41 | |||
42 | <tr class="data"> | ||
43 | <td class="recipe__name"> | ||
44 | <a href="{% url "recipe" build.pk recipe.pk %}">{{recipe.name}}</a> | ||
45 | </td> | ||
46 | <td class="recipe__version"> | ||
47 | <a href="{% url "recipe" build.pk recipe.pk %}">{{recipe.version}}</a> | ||
48 | </td> | ||
49 | <!-- Depends --> | ||
50 | <td class="depends_on"> | ||
51 | {% with deps=recipe_deps|get_dict_value:recipe.pk %} | ||
52 | {% with count=deps|length %} | ||
53 | {% if count %} | ||
54 | <a class="btn" | ||
55 | title="<a href='{% url "recipe" build.pk recipe.pk %}#dependencies'>{{recipe.name}}</a> dependencies" | ||
56 | data-content="<ul class='list-unstyled'> | ||
57 | {% for i in deps|dictsort:"depends_on.name"%} | ||
58 | <li><a href='{% url "recipe" build.pk i.depends_on.pk %}'>{{i.depends_on.name}}</a></li> | ||
59 | {% endfor %} | ||
60 | </ul>"> | ||
61 | {{count}} | ||
62 | </a> | ||
63 | {% endif %} | ||
64 | {% endwith %} | ||
65 | {% endwith %} | ||
66 | </td> | ||
67 | <!-- Brought in by --> | ||
68 | <td class="depends_by"> | ||
69 | {% with revs=recipe_revs|get_dict_value:recipe.pk %} | ||
70 | {% with count=revs|length %} | ||
71 | {% if count %} | ||
72 | <a class="btn" | ||
73 | title="<a href='{% url "recipe" build.pk recipe.pk %}#brought-in-by'>{{recipe.name}}</a> reverse dependencies" | ||
74 | data-content="<ul class='list-unstyled'> | ||
75 | {% for i in revs|dictsort:"recipe.name" %} | ||
76 | <li><a href='{% url "recipe" build.pk i.recipe.pk %}'>{{i.recipe.name}}</a></li> | ||
77 | {% endfor %} | ||
78 | </ul>"> | ||
79 | {{count}} | ||
80 | </a> | ||
81 | {% endif %} | ||
82 | {% endwith %} | ||
83 | {% endwith %} | ||
84 | </td> | ||
85 | <!-- Recipe file --> | ||
86 | <td class="recipe_file">{{recipe.file_path}} {% if recipe.pathflags %}<i>({{recipe.pathflags}})</i>{% endif %}</td> | ||
87 | <!-- Section --> | ||
88 | <td class="recipe_section">{{recipe.section}}</td> | ||
89 | <!-- License --> | ||
90 | <td class="recipe_license">{{recipe.license}}</td> | ||
91 | <!-- Layer --> | ||
92 | <td class="layer_version__layer__name">{{recipe.layer_version.layer.name}}</td> | ||
93 | <!-- Layer branch --> | ||
94 | <td class="layer_version__branch">{{recipe.layer_version.branch}}</td> | ||
95 | <!-- Layer commit --> | ||
96 | <td class="layer_version__layer__commit"> | ||
97 | <a class="btn" | ||
98 | data-content="<ul class='list-unstyled'> | ||
99 | <li>{{recipe.layer_version.commit}}</li> | ||
100 | </ul>"> | ||
101 | {{recipe.layer_version.commit|truncatechars:13}} | ||
102 | </a> | ||
103 | </td> | ||
104 | </tr> | ||
105 | |||
106 | {% endfor %} | ||
107 | |||
108 | {% include "basetable_bottom.html" %} | ||
109 | {% endif %} | ||
110 | </div> | ||
111 | {% endblock %} | ||