diff options
Diffstat (limited to 'bitbake/lib/toaster/toastergui/templates/recipes.html')
-rw-r--r-- | bitbake/lib/toaster/toastergui/templates/recipes.html | 110 |
1 files changed, 110 insertions, 0 deletions
diff --git a/bitbake/lib/toaster/toastergui/templates/recipes.html b/bitbake/lib/toaster/toastergui/templates/recipes.html new file mode 100644 index 0000000000..791a487a81 --- /dev/null +++ b/bitbake/lib/toaster/toastergui/templates/recipes.html | |||
@@ -0,0 +1,110 @@ | |||
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 | {% with deps=recipe_deps|get_dict_value:recipe.pk %} | ||
49 | {% with count=deps|length %} | ||
50 | {% if count %} | ||
51 | <a class="btn" | ||
52 | title="<a href='{% url "recipe" build.pk recipe.pk %}#dependencies'>{{recipe.name}}</a> dependencies" | ||
53 | data-content="<ul class='unstyled'> | ||
54 | {% for i in deps|dictsort:"depends_on.name"%} | ||
55 | <li><a href='{% url "recipe" build.pk i.depends_on.pk %}'>{{i.depends_on.name}}</a></li> | ||
56 | {% endfor %} | ||
57 | </ul>"> | ||
58 | {{count}} | ||
59 | </a> | ||
60 | {% endif %} | ||
61 | {% endwith %} | ||
62 | {% endwith %} | ||
63 | </td> | ||
64 | <!-- Brought in by --> | ||
65 | <td class="depends_by"> | ||
66 | {% with revs=recipe_revs|get_dict_value:recipe.pk %} | ||
67 | {% with count=revs|length %} | ||
68 | {% if count %} | ||
69 | <a class="btn" | ||
70 | title="<a href='{% url "recipe" build.pk recipe.pk %}#brought-in-by'>{{recipe.name}}</a> reverse dependencies" | ||
71 | data-content="<ul class='unstyled'> | ||
72 | {% for i in revs|dictsort:"recipe.name" %} | ||
73 | <li><a href='{% url "recipe" build.pk i.recipe.pk %}'>{{i.recipe.name}}</a></li> | ||
74 | {% endfor %} | ||
75 | </ul>"> | ||
76 | {{count}} | ||
77 | </a> | ||
78 | {% endif %} | ||
79 | {% endwith %} | ||
80 | {% endwith %} | ||
81 | </td> | ||
82 | <!-- Recipe file --> | ||
83 | <td class="recipe_file">{{recipe.file_path}}</td> | ||
84 | <!-- Section --> | ||
85 | <td class="recipe_section">{{recipe.section}}</td> | ||
86 | <!-- License --> | ||
87 | <td class="recipe_license">{{recipe.license}}</td> | ||
88 | <!-- Layer --> | ||
89 | <td class="layer_version__layer__name">{{recipe.layer_version.layer.name}}</td> | ||
90 | <!-- Layer branch --> | ||
91 | <td class="layer_version__branch">{{recipe.layer_version.branch}}</td> | ||
92 | <!-- Layer commit --> | ||
93 | <td class="layer_version__layer__commit"> | ||
94 | <a class="btn" | ||
95 | data-content="<ul class='unstyled'> | ||
96 | <li>{{recipe.layer_version.commit}}</li> | ||
97 | </ul>"> | ||
98 | {{recipe.layer_version.commit|truncatechars:13}} | ||
99 | </a> | ||
100 | </td> | ||
101 | <!-- Layer directory --> | ||
102 | <td class="layer_version__layer__local_path">{{recipe.layer_version.layer.local_path}}</td> | ||
103 | </tr> | ||
104 | |||
105 | {% endfor %} | ||
106 | |||
107 | {% include "basetable_bottom.html" %} | ||
108 | {% endif %} | ||
109 | </div> | ||
110 | {% endblock %} | ||