summaryrefslogtreecommitdiffstats
path: root/bitbake/lib/toaster/toastergui/templates/recipe.html
diff options
context:
space:
mode:
authorBelen Barros Pena <belen.barros.pena@intel.com>2014-04-01 23:11:30 +0100
committerRichard Purdie <richard.purdie@linuxfoundation.org>2014-05-08 16:18:12 +0100
commit12782678073b1605cc282a0a89e4ebb2e10a9be8 (patch)
tree4b55af3803cb6446426cf2e2f4b748baaf808b0e /bitbake/lib/toaster/toastergui/templates/recipe.html
parent961f6226fa8019a7492ee40fdba18c5916065001 (diff)
downloadpoky-12782678073b1605cc282a0a89e4ebb2e10a9be8.tar.gz
bitbake: toaster: Make sure layer branch only shows when not empty
In the recipe details and package details pages, the layer branch definition list elements should only show when the branch field in the database is populated. If the branch field is empty, we don't show them. The patch also removes all unnecessary data-toggle and data-original-title attributes. [YP #6152] (Bitbake rev: 72adcadb931519f803dad7488544767241561fb7) Signed-off-by: Belen Barros Pena <belen.barros.pena@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'bitbake/lib/toaster/toastergui/templates/recipe.html')
-rw-r--r--bitbake/lib/toaster/toastergui/templates/recipe.html22
1 files changed, 12 insertions, 10 deletions
diff --git a/bitbake/lib/toaster/toastergui/templates/recipe.html b/bitbake/lib/toaster/toastergui/templates/recipe.html
index 6e9cd23424..a830ba9fb8 100644
--- a/bitbake/lib/toaster/toastergui/templates/recipe.html
+++ b/bitbake/lib/toaster/toastergui/templates/recipe.html
@@ -21,25 +21,25 @@
21 <ul class="nav nav-pills"> 21 <ul class="nav nav-pills">
22 <li class="active"> 22 <li class="active">
23 <a href="#information" data-toggle="tab"> 23 <a href="#information" data-toggle="tab">
24 <i class="icon-question-sign get-help" data-toggle="tooltip" 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="#packages-built" data-toggle="tab">
30 <i class="icon-question-sign get-help" data-toggle="tooltip" 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 ({{packages.count}})
32 </a> 32 </a>
33 </li> 33 </li>
34 <li> 34 <li>
35 <a href="#dependencies" data-toggle="tab"> 35 <a href="#dependencies" data-toggle="tab">
36 <i class="icon-question-sign get-help" data-toggle="tooltip" 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>
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" data-toggle="tooltip" 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}})
44 </a> 44 </a>
45 </li> 45 </li>
@@ -48,27 +48,29 @@
48 <div class="tab-pane active" id="information" name="information"> 48 <div class="tab-pane active" 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" data-toggle="tooltip" 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>
52 Layer 52 Layer
53 </dt> 53 </dt>
54 <dd>{{layer.name}}</dd> 54 <dd>{{layer.name}}</dd>
55 <dt> 55 <dt>
56 <i class="icon-question-sign get-help" data-toggle="tooltip" title="Path to the layer providing the recipe"></i> 56 <i class="icon-question-sign get-help" title="Path to the layer providing the recipe"></i>
57 Layer directory 57 Layer directory
58 </dt> 58 </dt>
59 <dd><code>{{layer.local_path}}</code></dd> 59 <dd><code>{{layer.local_path}}</code></dd>
60 <dt> 60 <dt>
61 <i class="icon-question-sign get-help" data-toggle="tooltip" title="Path to the recipe .bb file"></i> 61 <i class="icon-question-sign get-help" title="Path to the recipe .bb file"></i>
62 Recipe file 62 Recipe file
63 </dt> 63 </dt>
64 <dd><code>{{object.file_path}}</code></dd> 64 <dd><code>{{object.file_path}}</code></dd>
65 {% if layer_version.branch %}
65 <dt> 66 <dt>
66 <i class="icon-question-sign get-help" data-toggle="tooltip" title="The Git branch of the layer providing the recipe"></i> 67 <i class="icon-question-sign get-help" title="The Git branch of the layer providing the recipe"></i>
67 Layer branch 68 Layer branch
68 </dt> 69 </dt>
69 <dd>{{layer_version.branch}}</dd> 70 <dd>{{layer_version.branch}}</dd>
71 {% endif %}
70 <dt> 72 <dt>
71 <i class="icon-question-sign get-help" data-toggle="tooltip" title="The Git commit of the layer providing the recipe"></i> 73 <i class="icon-question-sign get-help" title="The Git commit of the layer providing the recipe"></i>
72 Layer commit 74 Layer commit
73 </dt> 75 </dt>
74 <dd class="iscommit">{{layer_version.commit}}</dd> 76 <dd class="iscommit">{{layer_version.commit}}</dd>
@@ -259,7 +261,7 @@
259 {% if object.section %} 261 {% if object.section %}
260 <dt> 262 <dt>
261 Section 263 Section
262 <i class="icon-question-sign get-help" data-toggle="tooltip" title="The section in which recipes should be categorized"></i> 264 <i class="icon-question-sign get-help" title="The section in which recipes should be categorized"></i>
263 </dt> 265 </dt>
264 <dd>{{object.section}}</dd> 266 <dd>{{object.section}}</dd>
265 {% endif %} 267 {% endif %}