aboutsummaryrefslogtreecommitdiffstats
path: root/lib/toaster/toastergui/templates/package_detail_base.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:05 +0100
commit72adcadb931519f803dad7488544767241561fb7 (patch)
tree6eb6cf5a7ddb4c89e864e704f5e6465491f918d9 /lib/toaster/toastergui/templates/package_detail_base.html
parenteee0abe70e4d85a0753f0b122518d7a9f06181bc (diff)
downloadbitbake-contrib-72adcadb931519f803dad7488544767241561fb7.tar.gz
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] Signed-off-by: Belen Barros Pena <belen.barros.pena@intel.com>
Diffstat (limited to 'lib/toaster/toastergui/templates/package_detail_base.html')
-rw-r--r--lib/toaster/toastergui/templates/package_detail_base.html21
1 files changed, 11 insertions, 10 deletions
diff --git a/lib/toaster/toastergui/templates/package_detail_base.html b/lib/toaster/toastergui/templates/package_detail_base.html
index 588851348..cd015d355 100644
--- a/lib/toaster/toastergui/templates/package_detail_base.html
+++ b/lib/toaster/toastergui/templates/package_detail_base.html
@@ -57,7 +57,7 @@
<dl>
<dt>
Size
- <i class="icon-question-sign get-help" data-toggle="tooltip" title="The size of the package"></i>
+ <i class="icon-question-sign get-help" title="The size of the package"></i>
</dt>
<dd>
{% comment %}
@@ -74,7 +74,7 @@
<dt>
License
- <i class="icon-question-sign get-help" data-toggle="tooltip" title="The license under which this package is distributed"></i>
+ <i class="icon-question-sign get-help" title="The license under which this package is distributed"></i>
</dt>
<dd>{{package.license}}</dd>
@@ -83,14 +83,14 @@
# problemse are resolved.
<dt>
License files
- <i class="icon-question-sign get-help" data-toggle="tooltip" title="Path to the license files that apply to the package"></i>
+ <i class="icon-question-sign get-help" title="Path to the license files that apply to the package"></i>
</dt>
<dd></dd>
{% endcomment %}
<dt>
Recipe
- <i class="icon-question-sign get-help" data-toggle="tooltip" title="The name of the recipe building this package"></i>
+ <i class="icon-question-sign get-help" title="The name of the recipe building this package"></i>
</dt>
<dd>
{% if package.recipe_id > 0 %}
@@ -102,13 +102,13 @@
<dt>
Recipe version
- <i class="icon-question-sign get-help" data-toggle="tooltip" title="The version of the recipe building this package"></i>
+ <i class="icon-question-sign get-help" title="The version of the recipe building this package"></i>
</dt>
<dd>{{package.recipe.version}}</dd>
<dt>
Layer
- <i class="icon-question-sign get-help" data-toggle="tooltip" title="The name of the layer providing the recipe that builds this package"></i>
+ <i class="icon-question-sign get-help" title="The name of the layer providing the recipe that builds this package"></i>
</dt>
<dd>
{{package.recipe.layer_version.layer.name}}
@@ -122,21 +122,22 @@
{% endcomment %}
{% endif %}
</dd>
-
+ {% if package.recipe.layer_version.branch %}
<dt>
Layer branch
- <i class="icon-question-sign get-help" data-toggle="tooltip" title="The Git branch of the layer providing the recipe that builds this package"></i>
+ <i class="icon-question-sign get-help" title="The Git branch of the layer providing the recipe that builds this package"></i>
</dt>
<dd>{{package.recipe.layer_version.branch}}</dd>
+ {% endif %}
<dt>
Layer commit
- <i class="icon-question-sign get-help" data-toggle="tooltip" title="The Git commit of the layer providing the recipe that builds this package"></i>
+ <i class="icon-question-sign get-help" title="The Git commit of the layer providing the recipe that builds this package"></i>
</dt>
<dd class="iscommit">{{package.recipe.layer_version.commit}}</dd>
<dt>
Layer directory
- <i class="icon-question-sign get-help" data-toggle="tooltip" title="Path to the layer providing the recipe that builds this package"></i>
+ <i class="icon-question-sign get-help" title="Path to the layer providing the recipe that builds this package"></i>
</dt>
<dd><code>{{package.recipe.layer_version.layer.local_path}}</code></dd>
</dl>