aboutsummaryrefslogtreecommitdiff
path: root/doc/templates/gitbranch.mdwn
diff options
context:
space:
mode:
authorhttp://smcv.pseudorandom.co.uk/ <smcv@web>2014-02-21 13:20:12 -0400
committeradmin <admin@branchable.com>2014-02-21 13:20:12 -0400
commit92eb8b009b8881c74d246f8b54a133e833a62469 (patch)
tree2b69573752a9698e6699b7f2649b60013ea3cabb /doc/templates/gitbranch.mdwn
parent3a807a87003b3176c24b3f9a3e7cacea30de4b7e (diff)
downloadikiwiki-92eb8b009b8881c74d246f8b54a133e833a62469.tar
ikiwiki-92eb8b009b8881c74d246f8b54a133e833a62469.tar.gz
add optional gitweb/cgit link
Diffstat (limited to 'doc/templates/gitbranch.mdwn')
-rw-r--r--doc/templates/gitbranch.mdwn8
1 files changed, 7 insertions, 1 deletions
diff --git a/doc/templates/gitbranch.mdwn b/doc/templates/gitbranch.mdwn
index 4fdf937ff..2df75097f 100644
--- a/doc/templates/gitbranch.mdwn
+++ b/doc/templates/gitbranch.mdwn
@@ -1,7 +1,13 @@
<span class="infobox">
Available in a [[!taglink /git]] repository [[!taglink branch|/branches]].<br />
-Branch: <TMPL_VAR branch><br />
+Branch: <TMPL_IF browse>
+<a href="<TMPL_VAR browse>"><TMPL_VAR branch></a>
+<TMPL_ELSE>
+<TMPL_VAR branch>
+</TMPL_IF><br />
+<TMPL_IF author>
Author: <TMPL_VAR author><br />
+<TMPL_IF>
</span>
<TMPL_UNLESS branch>
This template is used to create an infobox for a git branch. It uses