autofocus input field if there is no query
[phinde.git] / data / templates / base.htm
index a497f017ba23e06d90041cdfbb4121615eceb6ee..0f5bd13b4040bcbe2b550b8517aa1fd3ceb613ea 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" id="searchq"
+             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 %}
 
   <div class="container footer">
-   Powered by <em>phinde</em>, the self-hosted search engine
+   Powered by
+   <a href="https://github.com/cweiske/phinde"><em>phinde</em></a>,
+   the self-hosted search engine.
+   <a href="/status.php" class="disguised">status</a>
   </div>
  </body>
 </html>