]> git.vanrenterghem.biz Git - git.ikiwiki.info.git/commitdiff
add optional gitweb/cgit link
authorhttp://smcv.pseudorandom.co.uk/ <smcv@web>
Fri, 21 Feb 2014 17:20:12 +0000 (13:20 -0400)
committeradmin <admin@branchable.com>
Fri, 21 Feb 2014 17:20:12 +0000 (13:20 -0400)
doc/templates/gitbranch.mdwn

index 4fdf937ff2da6be6b794cb44dce850f08700b548..2df75097f912ba5e2cb785d7a2794745af4324e2 100644 (file)
@@ -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