# HG changeset patch # User Paul Boddie # Date 1304780494 -7200 # Node ID 9237523a30e0cdfe5092b08f7b6547850a14ae10 # Parent 26aa78f45d8986a8cc2f687c3507d122c70ff961 Added diff hiding in the changeset view, requiring a patch introducing the blockno variable in the changeset's files list and for each diff in the diffs webcommand. diff -r 26aa78f45d89 -r 9237523a30e0 themes/mercurialweb/map --- a/themes/mercurialweb/map Tue Apr 05 23:24:56 2011 +0200 +++ b/themes/mercurialweb/map Sat May 07 17:01:34 2011 +0200 @@ -51,7 +51,7 @@ shortlogpagerlink = '{label|xmlescape} ' tagtag = '{name} ' -diffblock = '
{lines}
' +diffblock = '
{lines}
' difflineplus = '{linenumber} {line|xmlescape}' difflineminus = '{linenumber} {line|xmlescape}' difflineat = '{linenumber} {line|xmlescape}' @@ -63,7 +63,7 @@ fileline = '{linenumber} {line|xmlescape}' filenolink = '{file|xmlescape} ' -filenodelink = '{file|xmlescape} ' +filenodelink = '{file|xmlescape} ' hiddenformentry = '' urlparameter = '{separator}{name}={value|urlescape}' diff -r 26aa78f45d89 -r 9237523a30e0 themes/mercurialweb/static/style-mercurialweb.css --- a/themes/mercurialweb/static/style-mercurialweb.css Tue Apr 05 23:24:56 2011 +0200 +++ b/themes/mercurialweb/static/style-mercurialweb.css Sat May 07 17:01:34 2011 +0200 @@ -449,6 +449,14 @@ content: ''; } +.diff div:not(:target) { + display: none; +} + +.diff div:target { + display: block; +} + /* Source views. */ .source {