comparison mercurial/templates/coal/map @ 18772:0bba1ff2ac7b

hgweb: change manifest archive links to only archive the current directory When the web server shows the manifest for a single, non top directory, append the path to the directory to the archive links. This makes the web server generate archive files that only include the current directory (and its subdirectories). Note that archive links in other pages (e.g. changeset) or at the top of the manifest are unchanged. Directory archive links have an extra "/" at the end which does not impact the result of the archive operation. Keeping it there made the implementation of this feature simpler.
author Angel Ezquerra <angel.ezquerra@gmail.com>
date Tue, 26 Feb 2013 21:20:35 +0100
parents 3c7c25fa58e0
children 9e1f4c65f5f5
comparison
equal deleted inserted replaced
18771:bb38f4f78104 18772:0bba1ff2ac7b
222 </tr>\n' 222 </tr>\n'
223 indexarchiveentry = '<a href="{url|urlescape}archive/{node|short}{extension|urlescape}">&nbsp;&darr;{type|escape}</a>' 223 indexarchiveentry = '<a href="{url|urlescape}archive/{node|short}{extension|urlescape}">&nbsp;&darr;{type|escape}</a>'
224 index = ../paper/index.tmpl 224 index = ../paper/index.tmpl
225 archiveentry = ' 225 archiveentry = '
226 <li> 226 <li>
227 <a href="{url|urlescape}archive/{node|short}{extension|urlescape}">{type|escape}</a> 227 <a href="{url|urlescape}archive/{node|short}{extension|urlescape}{ifeq(path,'/','',path|urlescape)}">{type|escape}</a>
228 </li>' 228 </li>'
229 notfound = ../paper/notfound.tmpl 229 notfound = ../paper/notfound.tmpl
230 error = ../paper/error.tmpl 230 error = ../paper/error.tmpl
231 urlparameter = '{separator}{name}={value|urlescape}' 231 urlparameter = '{separator}{name}={value|urlescape}'
232 hiddenformentry = '<input type="hidden" name="{name}" value="{value|escape}" />' 232 hiddenformentry = '<input type="hidden" name="{name}" value="{value|escape}" />'