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)
downloadast2050-yocto-poky-12782678073b1605cc282a0a89e4ebb2e10a9be8.zip
ast2050-yocto-poky-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 6e9cd23..a830ba9 100644
--- a/bitbake/lib/toaster/toastergui/templates/recipe.html
+++ b/bitbake/lib/toaster/toastergui/templates/recipe.html
@@ -21,25 +21,25 @@
<ul class="nav nav-pills">
<li class="active">
<a href="#information" data-toggle="tab">
- <i class="icon-question-sign get-help" data-toggle="tooltip" title="Build-related information about the recipe"></i>
+ <i class="icon-question-sign get-help" title="Build-related information about the recipe"></i>
Recipe details
</a>
</li>
<li>
<a href="#packages-built" data-toggle="tab">
- <i class="icon-question-sign get-help" data-toggle="tooltip" title="The packaged output resulting from building the recipe"></i>
+ <i class="icon-question-sign get-help" title="The packaged output resulting from building the recipe"></i>
Packages ({{packages.count}})
</a>
</li>
<li>
<a href="#dependencies" data-toggle="tab">
- <i class="icon-question-sign get-help" data-toggle="tooltip" title="The recipe build-time dependencies (i.e. other recipes)"></i>
+ <i class="icon-question-sign get-help" title="The recipe build-time dependencies (i.e. other recipes)"></i>
Build dependencies ({{object.r_dependencies_recipe.all.count}})
</a>
</li>
<li>
<a href="#brought-in-by" data-toggle="tab">
- <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>
+ <i class="icon-question-sign get-help" title="The recipe build-time reverse dependencies (i.e. the recipes that depend on this recipe)"></i>
Reverse build dependencies ({{object.r_dependencies_depends.all.count}})
</a>
</li>
@@ -48,27 +48,29 @@
<div class="tab-pane active" id="information" name="information">
<dl class="dl-horizontal">
<dt>
- <i class="icon-question-sign get-help" data-toggle="tooltip" title="The name of the layer providing the recipe"></i>
+ <i class="icon-question-sign get-help" title="The name of the layer providing the recipe"></i>
Layer
</dt>
<dd>{{layer.name}}</dd>
<dt>
- <i class="icon-question-sign get-help" data-toggle="tooltip" title="Path to the layer providing the recipe"></i>
+ <i class="icon-question-sign get-help" title="Path to the layer providing the recipe"></i>
Layer directory
</dt>
<dd><code>{{layer.local_path}}</code></dd>
<dt>
- <i class="icon-question-sign get-help" data-toggle="tooltip" title="Path to the recipe .bb file"></i>
+ <i class="icon-question-sign get-help" title="Path to the recipe .bb file"></i>
Recipe file
</dt>
<dd><code>{{object.file_path}}</code></dd>
+ {% if layer_version.branch %}
<dt>
- <i class="icon-question-sign get-help" data-toggle="tooltip" title="The Git branch of the layer providing the recipe"></i>
+ <i class="icon-question-sign get-help" title="The Git branch of the layer providing the recipe"></i>
Layer branch
</dt>
<dd>{{layer_version.branch}}</dd>
+ {% endif %}
<dt>
- <i class="icon-question-sign get-help" data-toggle="tooltip" title="The Git commit of the layer providing the recipe"></i>
+ <i class="icon-question-sign get-help" title="The Git commit of the layer providing the recipe"></i>
Layer commit
</dt>
<dd class="iscommit">{{layer_version.commit}}</dd>
@@ -259,7 +261,7 @@
{% if object.section %}
<dt>
Section
- <i class="icon-question-sign get-help" data-toggle="tooltip" title="The section in which recipes should be categorized"></i>
+ <i class="icon-question-sign get-help" title="The section in which recipes should be categorized"></i>
</dt>
<dd>{{object.section}}</dd>
{% endif %}
OpenPOWER on IntegriCloud