summaryrefslogtreecommitdiffstats
path: root/bitbake/lib/toaster/toastergui/templates/recipes.html
diff options
context:
space:
mode:
Diffstat (limited to 'bitbake/lib/toaster/toastergui/templates/recipes.html')
-rwxr-xr-xbitbake/lib/toaster/toastergui/templates/recipes.html102
1 files changed, 102 insertions, 0 deletions
diff --git a/bitbake/lib/toaster/toastergui/templates/recipes.html b/bitbake/lib/toaster/toastergui/templates/recipes.html
new file mode 100755
index 0000000..907b83d
--- /dev/null
+++ b/bitbake/lib/toaster/toastergui/templates/recipes.html
@@ -0,0 +1,102 @@
1{% extends "basebuildpage.html" %}
2
3{% load projecttags %}
4
5{% block localbreadcrumb %}
6<li>Recipes</li>
7{% endblock %}
8
9{% block nav-recipes %}
10 <li class="active"><a href="{% url 'recipes' build.pk %}">Recipes</a></li>
11{% endblock %}
12
13{% block buildinfomain %}
14<div class="span10">
15<div class="page-header">
16<h1>
17 {% if request.GET.search and objects.paginator.count > 0 %}
18 {{objects.paginator.count}} recipe{{objects.paginator.count|pluralize}} found
19 {%elif request.GET.search and objects.paginator.count == 0%}
20 No recipes found
21 {%else%}
22 Recipes
23 {%endif%}
24 </h1>
25</div>
26
27{% if objects.paginator.count == 0 %}
28 <div class="row-fluid">
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="{{request.GET.search}}"/>{% if request.GET.search %}<a href="javascript:$('#search').val('');searchform.submit()" class="add-on btn" tabindex="-1"><i class="icon-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 </div>
37
38{% else %}
39{% include "basetable_top.html" %}
40
41 {% for recipe in objects %}
42
43 <tr class="data">
44 <td><a href="{% url "recipe" build.pk recipe.pk %}">{{recipe.name}}</a></td>
45 <td><a href="{% url "recipe" build.pk recipe.pk %}">{{recipe.version}}</a></td>
46 <!-- Depends -->
47 <td class="depends_on">
48 {% if recipe.r_dependencies_recipe.all.count %}
49 <a class="btn"
50 title="<a href='{% url "recipe" build.pk recipe.pk %}#dependencies'>{{recipe.name}}</a> dependencies"
51 data-content="<ul class='unstyled'>
52 {% for i in recipe.r_dependencies_recipe.all|dictsort:"depends_on.name"%}
53 <li><a href='{% url "recipe" build.pk i.depends_on.pk %}'>{{i.depends_on.name}}</a></li>
54 {% endfor %}
55 </ul>">
56 {{recipe.r_dependencies_recipe.all.count}}
57 </a>
58 {% endif %}
59 </td>
60 <!-- Brought in by -->
61 <td class="depends_by">
62 {% if recipe.r_dependencies_depends.all.count %}
63 <a class="btn"
64 title="<a href='{% url "recipe" build.pk recipe.pk %}#brought-in-by'>{{recipe.name}}</a> reverse dependencies"
65 data-content="<ul class='unstyled'>
66 {% for i in recipe.r_dependencies_depends.all|dictsort:"recipe.name"%}
67 <li><a href='{% url "recipe" build.pk i.recipe.pk %}'>{{i.recipe.name}}</a></li>
68 {% endfor %}
69 </ul>">
70 {{recipe.r_dependencies_depends.all.count}}
71 </a>
72 {% endif %}
73 </td>
74 <!-- Recipe file -->
75 <td class="recipe_file">{{recipe.file_path}}</td>
76 <!-- Section -->
77 <td class="recipe_section">{{recipe.section}}</td>
78 <!-- License -->
79 <td class="recipe_license">{{recipe.license}}</td>
80 <!-- Layer -->
81 <td class="layer_version__layer__name">{{recipe.layer_version.layer.name}}</td>
82 <!-- Layer branch -->
83 <td class="layer_version__branch">{{recipe.layer_version.branch}}</td>
84 <!-- Layer commit -->
85 <td class="layer_version__layer__commit">
86 <a class="btn"
87 data-content="<ul class='unstyled'>
88 <li>{{recipe.layer_version.commit}}</li>
89 </ul>">
90 {{recipe.layer_version.commit|truncatechars:13}}
91 </a>
92 </td>
93 <!-- Layer directory -->
94 <td class="layer_version__layer__local_path">{{recipe.layer_version.layer.local_path}}</td>
95 </tr>
96
97 {% endfor %}
98
99{% include "basetable_bottom.html" %}
100{% endif %}
101</div>
102{% endblock %}