hgweb: descend empty directories in monoblue
authorAnton Shestakov <engored@ya.ru>
Thu, 21 May 2015 19:52:36 +0800
changeset 25232 e50d8b21f4f4
parent 25231 8545bd381504
child 25233 9789b4a7c595
hgweb: descend empty directories in monoblue The ability to "skip" a chain of empty directories in hgweb was added in c21d236ca897, but monoblue style wasn't updated. This block is copied from gitweb/map file and just works.
mercurial/templates/monoblue/map
--- a/mercurial/templates/monoblue/map	Mon May 18 14:29:20 2015 -0700
+++ b/mercurial/templates/monoblue/map	Thu May 21 19:52:36 2015 +0800
@@ -65,7 +65,10 @@
     <td>drwxr-xr-x</td>
     <td></td>
     <td></td>
-    <td><a href="{url|urlescape}file/{node|short}{path|urlescape}{sessionvars%urlparameter}">{basename|escape}</a></td>
+    <td>
+      <a href="{url|urlescape}file/{node|short}{path|urlescape}{sessionvars%urlparameter}">{basename|escape}</a>
+      <a href="{url|urlescape}file/{node|short}{path|urlescape}/{emptydirs|urlescape}{sessionvars%urlparameter}">{emptydirs|escape}</a>
+    </td>
     <td><a href="{url|urlescape}file/{node|short}{path|urlescape}{sessionvars%urlparameter}">files</a></td>
   </tr>'
 fileentry = '