]> sipb.mit.edu Git - ikiwiki.git/blobdiff - doc/templates/gitbranch.mdwn
add optional gitweb/cgit link
[ikiwiki.git] / doc / templates / gitbranch.mdwn
index fcce925d94b5be169ee6f677bcb5853749f94a7a..2df75097f912ba5e2cb785d7a2794745af4324e2 100644 (file)
@@ -1,9 +1,15 @@
 <span class="infobox">
-Available in a [[!taglink /git]] repository.<br />
-Branch: <TMPL_VAR branch><br />
+Available in a [[!taglink /git]] repository [[!taglink branch|/branches]].<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 NAME="branch">
+<TMPL_UNLESS branch>
 This template is used to create an infobox for a git branch. It uses
 these parameters:
 
@@ -13,6 +19,4 @@ these parameters:
   (e.g. github/master)</li>
 <li>author - the author of the branch</li>
 </ul>
-
-It also automatically tags the branch with `/git`.
 </TMPL_UNLESS>