Mercurial > hg
diff tests/test-hgweb-commands.t @ 32761:cb5123eff7d1
hgweb: consistently add search form to all gitweb pages
Paper has it on all pages. Not sure why gitweb doesn't. I think it
should be everywhere because it is a useful feature.
Also, we weren't consistently adding the HTML in the same place. This
was OK since the element is absolutely positioned. But this bothered
me a bit, so I went ahead and fixed it.
author | Gregory Szorc <gregory.szorc@gmail.com> |
---|---|
date | Fri, 09 Jun 2017 13:45:36 -0700 |
parents | 58f3088aa2f5 |
children | 2d93d2159e30 |
line wrap: on
line diff
--- a/tests/test-hgweb-commands.t Fri Jun 09 13:42:38 2017 -0700 +++ b/tests/test-hgweb-commands.t Fri Jun 09 13:45:36 2017 -0700 @@ -1534,14 +1534,12 @@ <a href="https://mercurial-scm.org/" title="Mercurial" style="float: right;">Mercurial</a> <a href="/">Mercurial</a> / summary - <form action="/log"> <input type="hidden" name="style" value="gitweb" /> <div class="search"> <input type="text" name="rev" value="" /> </div> </form> - </div> <div class="page_nav"> @@ -1735,8 +1733,6 @@ <div class="page_header"> <a href="https://mercurial-scm.org/" title="Mercurial" style="float: right;">Mercurial</a> <a href="/">Mercurial</a> / graph - </div> - <form action="/log"> <input type="hidden" name="style" value="gitweb" /> @@ -1744,6 +1740,7 @@ <input type="text" name="rev" value="" /> </div> </form> + </div> <div class="page_nav"> <a href="/summary?style=gitweb">summary</a> |