autofocus input field if there is no query
[phinde.git] / data / templates / base.htm
1 <?xml version="1.0" encoding="utf-8"?>
2 <!DOCTYPE html>
3 <html xmlns="http://www.w3.org/1999/xhtml">
4  <head>
5   <meta charset="utf-8" />
6   <title>{% block title %}{% endblock %}{{apptitle}}</title>
7   <link rel="stylesheet" href="css/bootstrap.min.css"/>
8   <link rel="stylesheet" href="css/font-awesome.css"/>
9   <link rel="stylesheet" href="css/phinde.css"/>
10   <link rel="icon" href="favicon.ico"/>
11   <meta name="generator" content="phinde" />
12   <link rel="search" title="{{apptitle}}" type="application/opensearchdescription+xml" href="/opensearchdescription.php"/>
13   {% block meta %}{% endblock %}
14  </head>
15  <body>
16   <div class="navbar navbar-inverse navbar-static-top">
17    <div class="navbar-inner">
18     <div class="container">
19      <ul class="nav">
20       <li>
21        <a class="brand" href="{{baseUrl}}">{{apptitle}}</a>
22       </li>
23      </ul>
24      <form class="navbar-form pull-left" method="get" action="/">
25       <input type="text" name="q" placeholder="Search" id="searchq"
26              value="{{query}}" class="input-xxlarge"/>
27       {% if siteParam %}
28       <input type="hidden" name="site" value="{{site}}"/>
29       {% endif %}
30       <button type="submit" class="btn">Find</button>
31      </form>
32     </div>
33    </div>
34   </div>
35
36   {% block maincontent %}{% endblock %}
37
38   <div class="container footer">
39    Powered by
40    <a href="https://github.com/cweiske/phinde"><em>phinde</em></a>,
41    the self-hosted search engine.
42    <a href="/status.php" class="disguised">status</a>
43   </div>
44  </body>
45 </html>