talk about search setup
[phorkie.git] / data / templates / base.htm
index 906453eda57f576714bd4006790d18d090d76920..1fbde4d027b1ea621aab3aef13b18b782c34275d 100644 (file)
@@ -2,6 +2,7 @@
 <!DOCTYPE html>
 <html>
  <head>
+  <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
   <link rel="stylesheet" href="{{css}}"/>
   <link rel="stylesheet" href="/phorkie.css" />
   <title>{% block title %}{% endblock %} - {{title}}</title>
       <li>
        <a href="/list">List all</a>
       </li>
+      {% if db.adapter %}
       <li>
        <form class="navbar-search pull-left" action="/search" method="get">
         <input type="text" class="search-query" name="q" placeholder="Search" value="{{query}}"/>
        </form>
       </li>
+      {% endif %}
      </ul>
     </div>
    </div>