[PATCH 2 of 5] hgweb: consolidate search form for monoblue

Yuya Nishihara yuya at tcha.org
Sun Jun 11 00:23:25 EDT 2017


On Fri, 09 Jun 2017 14:00:03 -0700, Gregory Szorc wrote:
> # HG changeset patch
> # User Gregory Szorc <gregory.szorc at gmail.com>
> # Date 1497040870 25200
> #      Fri Jun 09 13:41:10 2017 -0700
> # Node ID 08889384494e21be250fae4d9c7b8082df31c0b2
> # Parent  ba069fc58ff051abadd3d0371c2a9a34e99079dd
> hgweb: consolidate search form for monoblue

> diff --git a/mercurial/templates/monoblue/map b/mercurial/templates/monoblue/map
> --- a/mercurial/templates/monoblue/map
> +++ b/mercurial/templates/monoblue/map
> @@ -279,3 +279,12 @@ urlparameter = '{separator}{name}={value
>  hiddenformentry = '<input type="hidden" name="{name}" value="{value|escape}" />'
>  graph = graph.tmpl
>  breadcrumb = '> <a href="{url|urlescape}">{name|escape}</a> '
> +
> +searchform = '
> +  <form action="{url|urlescape}log">
> +    {sessionvars%hiddenformentry}
> +    <dl class="search">
> +      <dt><label>Search: </label></dt>
> +      <dd><input type="text" name="rev" /></dd>

Missed value="{query|escape}". I'll fix it in flight.


More information about the Mercurial-devel mailing list