]> git.ipfire.org Git - thirdparty/sqlalchemy/sqlalchemy.git/commitdiff
- restored the main search form
authorMike Bayer <mike_mp@zzzcomputing.com>
Mon, 8 Dec 2008 00:20:20 +0000 (00:20 +0000)
committerMike Bayer <mike_mp@zzzcomputing.com>
Mon, 8 Dec 2008 00:20:20 +0000 (00:20 +0000)
- fixed search highlighting
- the url docstring works again from a ReST perspective, still not PDF

doc/build/static/docs.css
doc/build/templates/layout.mako
doc/build/templates/search.mako
lib/sqlalchemy/engine/url.py

index 3735221ce97696557eb691416d0683336dcb9c6e..810c51410fdfc95454509a9aaa548fdf035536e6 100644 (file)
@@ -34,6 +34,10 @@ strong a {
     float:right;
 }
 
+#searchform {
+    padding:20px;
+}
+
 #pagecontrol {
     float:right;
 }
@@ -224,7 +228,7 @@ dl.class > dt
     padding: 0px 10px;
 }
 
-dt:target {
+dt:target, span.highlight {
     background-color:#FBE54E;
 }
 
index ba2f16f248fb684acc6990be9810554c4f8fa7f9..62bbc383afb7d4471d69412a6073145dbaf5dd4b 100644 (file)
@@ -44,7 +44,7 @@
         <div id="search">
         Search:
         <form class="search" action="${pathto('search')}" method="get">
-          <input type="text" name="q" size="18" /> <input type="submit" value="${_('Go')}" />
+          <input type="text" name="q" size="18" /> <input type="submit" value="${_('Search')}" />
           <input type="hidden" name="check_keywords" value="yes" />
           <input type="hidden" name="area" value="default" />
         </form>
@@ -89,7 +89,9 @@
         </div>
         
         <div class="document">
-            ${next.body()}
+            <div class="body">
+                ${next.body()}
+            </div>
         </div>
 
         <%def name="footer()">
index 0340f6a3b6b80fda0bf86aeee6d6cb3f22e765da..dfad4d0e56d2c3663d84f899249b42c7707ab18a 100644 (file)
@@ -5,6 +5,15 @@
 %>
 <%def name="show_title()">${_('Search')}</%def>
 
+<div id="searchform">
+<h3>Enter Search Terms:</h3>
+<form class="search" action="${pathto('search')}" method="get">
+  <input type="text" name="q" size="18" /> <input type="submit" value="${_('Search')}" />
+  <input type="hidden" name="check_keywords" value="yes" />
+  <input type="hidden" name="area" value="default" />
+</form>
+</div>
+
 <div id="search-results"></div>
 
 <%def name="footer()">
index 5d5ce0bd0f669ef5fe086d2b51c083a31ac40dc0..035e2869354eb0c70787b2587d8f371247f4fb9c 100644 (file)
@@ -102,13 +102,14 @@ class URL(object):
         used as the keys by default.  Unset or false attributes are omitted
         from the final dictionary.
 
-        :param \**kw: Optional, alternate key names for url attributes::
+        :param \**kw: Optional, alternate key names for url 
+          attributes::
 
-          # return 'username' as 'user'
-          username='user'
+            # return 'username' as 'user'
+            username='user'
 
-          # omit 'database'
-          database=None
+            # omit 'database'
+            database=None
         
         :param names: Deprecated.  Same purpose as the keyword-based alternate names,
             but correlates the name to the original positionally.