make search bar visible on status page
authorChristian Weiske <cweiske@cweiske.de>
Thu, 24 Nov 2016 21:20:43 +0000 (22:20 +0100)
committerChristian Weiske <cweiske@cweiske.de>
Thu, 24 Nov 2016 21:20:43 +0000 (22:20 +0100)
data/templates/base.htm
data/templates/search.htm

index de3a5fb..f4bb38a 100644 (file)
   {% block meta %}{% endblock %}
  </head>
  <body>
+  <div class="navbar navbar-inverse navbar-static-top">
+   <div class="navbar-inner">
+    <div class="container">
+     <ul class="nav">
+      <li>
+       <a class="brand" href="{{baseUrl}}">{{apptitle}}</a>
+      </li>
+     </ul>
+     <form class="navbar-form pull-left" method="get" action="/">
+      <input type="text" name="q" placeholder="Search"
+             value="{{query}}" class="input-xxlarge"/>
+      {% if siteParam %}
+      <input type="hidden" name="site" value="{{site}}"/>
+      {% endif %}
+      <button type="submit" class="btn">Find</button>
+     </form>
+    </div>
+   </div>
+  </div>
 
   {% block maincontent %}{% endblock %}
 
index f0481a9..b1a4c2a 100644 (file)
 {% endblock %}
 
 {% block maincontent %}
-  <div class="navbar navbar-inverse navbar-static-top">
-   <div class="navbar-inner">
-    <div class="container">
-     <ul class="nav">
-      <li>
-       <a class="brand" href="{{baseUrl}}">{{apptitle}}</a>
-      </li>
-     </ul>
-     <form class="navbar-form pull-left">
-      <input type="text" name="q" placeholder="Search"
-             value="{{query}}" class="input-xxlarge"/>
-      {% if siteParam %}
-      <input type="hidden" name="site" value="{{site}}"/>
-      {% endif %}
-      <button type="submit" class="btn">Find</button>
-     </form>
-    </div>
-   </div>
-  </div>
   <div class="container">
    <div class="row">
     {% if query %}