mirror of
https://github.com/postgres/pgweb.git
synced 2025-08-10 00:42:06 +00:00
Change templates to use www.postgresql.org/search/ for search boxes
This makes search results render properly in the new website framwework. Also fixes the URL for search in interactive docs, without requiring double-indexing. Fixes #100 and #112
This commit is contained in:
@ -19,7 +19,7 @@
|
||||
<span class="txtOffScreen"><a href="#pgContentWrap" title="Skip section navigation" accesskey="2">Skip section navigation</a> (2)</span>
|
||||
<div id="pgHeaderContainer">
|
||||
<div id="pgSearch">
|
||||
<form method="get" action="http://search.postgresql.org/search">
|
||||
<form method="get" action="/search/">
|
||||
<div>
|
||||
<h2 class="pgBlockHide"><label for="q">Search</label></h2>
|
||||
<input id="q" name="q" type="text" size="20" maxlength="255" onfocus="if( this.value==this.defaultValue ) this.value='';" value="Search" accesskey="s" /><input name="a" type="hidden" value="1"/><input id="submit" name="submit" type="submit" value="Search" />
|
||||
|
@ -19,9 +19,9 @@
|
||||
<div id="docContainer">
|
||||
<div id="docNavSearchContainer">
|
||||
<div id="docSearch">
|
||||
<form action="http://search.postgresql.org/search" method="get">
|
||||
<form action="/search/" method="get">
|
||||
<div>
|
||||
<input type="hidden" name="u" value="/docs/{{doc_nav_version}}/{{doc_type}}/" />
|
||||
<input type="hidden" name="u" value="/docs/{{doc_nav_version}}/">
|
||||
<label for="q">Search Documentation: </label><input type="text" id="q" name="q" size="20" onfocus="if( this.value==this.defaultValue ) this.value='';" value="Search" /><input id="submit" type="submit" value="Search" />
|
||||
</div>
|
||||
</form>
|
||||
|
Reference in New Issue
Block a user