summaryrefslogtreecommitdiffstats
path: root/bitbake/lib/toaster/toastergui/templates
diff options
context:
space:
mode:
authorDave Lerner <dave.lerner@windriver.com>2015-02-25 14:53:22 -0600
committerRichard Purdie <richard.purdie@linuxfoundation.org>2015-03-09 14:33:50 +0000
commitd8ae3ac160a0256f205908fb3f72a2a1a2a85c94 (patch)
treec498813419df24dc60beeec37582540ae926f575 /bitbake/lib/toaster/toastergui/templates
parent4004aebb1b505967410494ed152b44eab0bf6cb4 (diff)
downloadpoky-d8ae3ac160a0256f205908fb3f72a2a1a2a85c94.tar.gz
bitbake: toaster: commit id format on layers page
On the layers page, when a layer revision is a commit id instead of a an upstream branch name, then follow the same format for displaying the commit id as on the recipes page. That format is a button with the truncated commit SHAID which when pressed expands to the full SHAID. [YOCTO #7191] (Bitbake rev: 507d2a36e53ba2c1f49616d52e4700f6c1bca8fd) Signed-off-by: Dave Lerner <dave.lerner@windriver.com> Signed-off-by: Alexandru DAMIAN <alexandru.damian@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'bitbake/lib/toaster/toastergui/templates')
-rw-r--r--bitbake/lib/toaster/toastergui/templates/layers.html15
1 files changed, 9 insertions, 6 deletions
diff --git a/bitbake/lib/toaster/toastergui/templates/layers.html b/bitbake/lib/toaster/toastergui/templates/layers.html
index 864e15683b..c35a299333 100644
--- a/bitbake/lib/toaster/toastergui/templates/layers.html
+++ b/bitbake/lib/toaster/toastergui/templates/layers.html
@@ -52,12 +52,15 @@
52 {% endif %} 52 {% endif %}
53 </td> 53 </td>
54 <td class="branch"> 54 <td class="branch">
55 {% if o.branch %} 55 {% with vcs_ref=o.get_vcs_reference %}
56 {{o.branch}} 56 {% if vcs_ref|is_shaid %}
57 {% else %} 57 <a class="btn" data-content="<ul class='unstyled'> <li>{{vcs_ref}}</li> </ul>">
58 {{o.up_branch.name}} 58 {{vcs_ref|truncatechars:10}}
59 <i class="icon-question-sign get-help hover-help" title="Your builds will use the tip of the branch you have cloned or downloaded to your computer, so nothing will be fetched"></i> 59 </a>
60 {% endif %} 60 {% else %}
61 {{vcs_ref}}
62 {% endif %}
63 {% endwith %}
61 </td> 64 </td>
62 <td class="dependencies"> 65 <td class="dependencies">
63 {% with ods=o.dependencies.all%} 66 {% with ods=o.dependencies.all%}