aboutsummaryrefslogtreecommitdiffstats
path: root/bitbake
diff options
context:
space:
mode:
authorDave Lerner <dave.lerner@windriver.com>2015-02-26 14:29:23 -0600
committerRichard Purdie <richard.purdie@linuxfoundation.org>2015-03-09 14:33:48 +0000
commit48c48a41bfd0bcc5612350ef890b4566f577dc6f (patch)
tree8548dbc613afda081f755ea4df03818a50a054df /bitbake
parentec8e07f8cf4d04d9e7a4a5e66103d28ba4a81ed4 (diff)
downloadopenembedded-core-contrib-48c48a41bfd0bcc5612350ef890b4566f577dc6f.tar.gz
bitbake: toaster: layer rev tooltip only if necessary
On the heading for the layer detail page, only show a tool tip on the heading revision branch/shaid field if the string is too large to fit in the 13 character field. That is, don't show a hovering tool tip with exactly the same string that is shown without the tip. [YOCTO #7312] (Bitbake rev: 8a3095a33551a96176fdff83ea33cda5b30311dd) Signed-off-by: Dave Lerner <dave.lerner@windriver.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'bitbake')
-rw-r--r--bitbake/lib/toaster/toastergui/templates/layerdetails.html6
1 files changed, 5 insertions, 1 deletions
diff --git a/bitbake/lib/toaster/toastergui/templates/layerdetails.html b/bitbake/lib/toaster/toastergui/templates/layerdetails.html
index 1f48c653a96..c3a50dff29d 100644
--- a/bitbake/lib/toaster/toastergui/templates/layerdetails.html
+++ b/bitbake/lib/toaster/toastergui/templates/layerdetails.html
@@ -66,7 +66,11 @@
{% include "layers_dep_modal.html" %}
<div class="row-fluid span11">
<div class="page-header">
- <h1>{{layerversion.layer.name}} <small class="commit" data-toggle="tooltip" title="{{layerversion.get_vcs_reference}}">({{layerversion.get_vcs_reference|truncatechars:13}})</small></h1>
+ <h1>{{layerversion.layer.name}} <small class="commit"
+ {% if layerversion.get_vcs_reference|length > 13 %}
+ data-toggle="tooltip" title="{{layerversion.get_vcs_reference}}"
+ {% endif %}>
+ ({{layerversion.get_vcs_reference|truncatechars:13}})</small></h1>
</div>
</div>