diff options
Diffstat (limited to 'bitbake/lib/toaster/toastergui/templates/recipe.html')
-rw-r--r-- | bitbake/lib/toaster/toastergui/templates/recipe.html | 52 |
1 files changed, 8 insertions, 44 deletions
diff --git a/bitbake/lib/toaster/toastergui/templates/recipe.html b/bitbake/lib/toaster/toastergui/templates/recipe.html index 621b852e77..6eba9b6f0b 100644 --- a/bitbake/lib/toaster/toastergui/templates/recipe.html +++ b/bitbake/lib/toaster/toastergui/templates/recipe.html | |||
@@ -19,25 +19,25 @@ | |||
19 | 19 | ||
20 | <div class="row span7 tabbable"> | 20 | <div class="row span7 tabbable"> |
21 | <ul class="nav nav-pills"> | 21 | <ul class="nav nav-pills"> |
22 | <li class="active"> | 22 | <li class="{{tab_states.1}}"> |
23 | <a href="#information" data-toggle="tab"> | 23 | <a href="#information" data-toggle="tab"> |
24 | <i class="icon-question-sign get-help" title="Build-related information about the recipe"></i> | 24 | <i class="icon-question-sign get-help" title="Build-related information about the recipe"></i> |
25 | Recipe details | 25 | Recipe details |
26 | </a> | 26 | </a> |
27 | </li> | 27 | </li> |
28 | <li> | 28 | <li> |
29 | <a href="#packages-built" data-toggle="tab"> | 29 | <a href="{% url "recipe_packages" build.pk object.id %}"> |
30 | <i class="icon-question-sign get-help" title="The packaged output resulting from building the recipe"></i> | 30 | <i class="icon-question-sign get-help" title="The packaged output resulting from building the recipe"></i> |
31 | Packages ({{packages.count}}) | 31 | Packages ({{package_count}}) |
32 | </a> | 32 | </a> |
33 | </li> | 33 | </li> |
34 | <li> | 34 | <li class="{{tab_states.3}}"> |
35 | <a href="#dependencies" data-toggle="tab"> | 35 | <a href="#dependencies" data-toggle="tab"> |
36 | <i class="icon-question-sign get-help" title="The recipe build-time dependencies (i.e. other recipes)"></i> | 36 | <i class="icon-question-sign get-help" title="The recipe build-time dependencies (i.e. other recipes)"></i> |
37 | Build dependencies ({{object.r_dependencies_recipe.all.count}}) | 37 | Build dependencies ({{object.r_dependencies_recipe.all.count}}) |
38 | </a> | 38 | </a> |
39 | </li> | 39 | </li> |
40 | <li> | 40 | <li class="{{tab_states.4}}"> |
41 | <a href="#brought-in-by" data-toggle="tab"> | 41 | <a href="#brought-in-by" data-toggle="tab"> |
42 | <i class="icon-question-sign get-help" title="The recipe build-time reverse dependencies (i.e. the recipes that depend on this recipe)"></i> | 42 | <i class="icon-question-sign get-help" title="The recipe build-time reverse dependencies (i.e. the recipes that depend on this recipe)"></i> |
43 | Reverse build dependencies ({{object.r_dependencies_depends.all.count}}) | 43 | Reverse build dependencies ({{object.r_dependencies_depends.all.count}}) |
@@ -45,7 +45,7 @@ | |||
45 | </li> | 45 | </li> |
46 | </ul> | 46 | </ul> |
47 | <div class="tab-content"> | 47 | <div class="tab-content"> |
48 | <div class="tab-pane active" id="information" name="information"> | 48 | <div class="tab-pane {{tab_states.1}}" id="information" name="information"> |
49 | <dl class="dl-horizontal"> | 49 | <dl class="dl-horizontal"> |
50 | <dt> | 50 | <dt> |
51 | <i class="icon-question-sign get-help" title="The name of the layer providing the recipe"></i> | 51 | <i class="icon-question-sign get-help" title="The name of the layer providing the recipe"></i> |
@@ -144,43 +144,7 @@ | |||
144 | </table> | 144 | </table> |
145 | {% endif %} | 145 | {% endif %} |
146 | </div> | 146 | </div> |
147 | <div class="tab-pane" id="packages-built" name="packages-built"> | 147 | <div class="tab-pane {{tab_states.3}}" id="dependencies" name="dependencies"> |
148 | {% if not packages %} | ||
149 | <div class="alert alert-info"> | ||
150 | <strong>{{object.name}}_{{object.version}}</strong> does not build any packages. | ||
151 | </div> | ||
152 | {% else %} | ||
153 | <table class="table table-bordered table-hover" style="margin-top:10px;"> | ||
154 | <thead> | ||
155 | <tr> | ||
156 | <th> | ||
157 | Package | ||
158 | </th> | ||
159 | <th> | ||
160 | Version | ||
161 | </th> | ||
162 | <th class="sizecol span2"> | ||
163 | Size | ||
164 | </th> | ||
165 | </tr> | ||
166 | </thead> | ||
167 | <tbody> | ||
168 | |||
169 | {% for package in packages|dictsort:"name" %} | ||
170 | |||
171 | <tr> | ||
172 | <td><a href="{% url "package_built_detail" build.pk package.pk %}">{{package.name}}</a></td> | ||
173 | <td><a href="{% url "package_built_detail" build.pk package.pk %}">{{package.version}}_{{package.revision}}</a></td> | ||
174 | <td class="sizecol"><a href="{% url "package_built_detail" build.pk package.pk %}">{{package.size|filtered_filesizeformat}}</a></td> | ||
175 | </tr> | ||
176 | |||
177 | {% endfor %} | ||
178 | |||
179 | </tbody> | ||
180 | </table> | ||
181 | {% endif %} | ||
182 | </div> | ||
183 | <div class="tab-pane" id="dependencies" name="dependencies"> | ||
184 | 148 | ||
185 | {% if not object.r_dependencies_recipe.all %} | 149 | {% if not object.r_dependencies_recipe.all %} |
186 | <div class="alert alert-info"> | 150 | <div class="alert alert-info"> |
@@ -212,7 +176,7 @@ | |||
212 | {% endif %} | 176 | {% endif %} |
213 | 177 | ||
214 | </div> | 178 | </div> |
215 | <div class="tab-pane" id="brought-in-by" name="brought-in-by"> | 179 | <div class="tab-pane {{tab_states.4}}" id="brought-in-by" name="brought-in-by"> |
216 | 180 | ||
217 | {% if not object.r_dependencies_depends.all %} | 181 | {% if not object.r_dependencies_depends.all %} |
218 | <div class="alert alert-info"> | 182 | <div class="alert alert-info"> |