]> sipb.mit.edu Git - ikiwiki.git/blobdiff - doc/templates/gitbranch.mdwn
use a <div> for the infobox so mdwn doesn't insert <p> inside a <span>
[ikiwiki.git] / doc / templates / gitbranch.mdwn
index 9624209401d8d55e2aa955c8f40076ed8a9d0dfc..62171bc60da95966c4f0d554ed3ddcd843635aae 100644 (file)
@@ -1,8 +1,8 @@
-<span class="infobox">
-Available in a [[!taglink /git]] repository.<br />
-Branch: <TMPL_VAR branch><br />
-Author: <TMPL_VAR author><br />
-</span>
+<div class="infobox">
+Available in a [[!taglink /git]] repository [[!taglink branch|/branches]].<br />
+Branch: <TMPL_IF browse><a href="<TMPL_VAR browse>"></TMPL_IF><TMPL_VAR branch><TMPL_IF browse></a></TMPL_IF>
+<TMPL_IF>Author: <TMPL_VAR author><br /></TMPL_IF>
+</div>
 <TMPL_UNLESS branch>
 This template is used to create an infobox for a git branch. It uses
 these parameters:
@@ -13,6 +13,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>