grim/hgkeeper-theme

54561c857826
Parents 9ce2c1888f99
Children f1c13e82bd49
Use the new http_base_url keyword to correctly display the clone url
--- a/templates/hgkeeper/nav/repo.tmpl Mon Nov 02 20:27:48 2020 -0600
+++ b/templates/hgkeeper/nav/repo.tmpl Mon Nov 02 23:15:51 2020 -0600
@@ -15,7 +15,7 @@
<div class="arrow"></div>
<h3 class="popover-header"></h3>
<div class="btn-group clone-btn-group">
- <input type="text" class="p-1 rounded-left border border-info text-monospace hgk-repository-clone-url" readonly="readonly" placeholder="Repository clone url" value="hg clone {http_clone_url}" />
+ <input type="text" class="p-1 rounded-left border border-info text-monospace hgk-repository-clone-url" readonly="readonly" placeholder="Repository clone url" value="hg clone {if(http_clone_url,http_clone_url,if(http_base_url, '{http_base_url}/{repo}', ''))}" />
<a class="btn btn-sm btn-outline-info hgk-copy-repository-url-btn" data-clipboard-action="copy" data-clipboard-text="hg clone {http_clone_url}" title="Copy repository clone url">
<i class="icofont-ui-copy"></i>
</a>