Show actual branch on layer detail

If the layer has an actual_branch set, then show it underneath the URL
on the layer detail page so that the reader knows which branch they need
to check out to see what the index shows.

Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com>
This commit is contained in:
Paul Eggleton 2018-09-11 14:06:12 +12:00
parent fc156726e6
commit 3a69495904

View File

@ -100,6 +100,12 @@
{% endif %}
</p>
{% if layerbranch.actual_branch %}
<p>
<span class="muted">(actual branch {{ layerbranch.actual_branch }})</span>
</p>
{% endif %}
{% if layerbranch.vcs_subdir %}
<h4>Subdirectory</h4>
<p><span data-toggle="tooltip" title="Select subdirectory"><i class="glyphicon glyphicon-circle-arrow-right selectallicon" for="vcs_subdir" id="vcs_subdir_select" aria-hidden="true"></i></span><span id="vcs_subdir" class="copyable">{{ layerbranch.vcs_subdir }}</span>