Implement request #12: DOAP documents for all pastes
[phorkie.git] / data / templates / base.htm
index 867481c949af555655fdfb1a2dec41a6ca4db43d..b9c9608616a612355584f5e9f38a5d1c9b721322 100644 (file)
@@ -2,11 +2,13 @@
 <!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>
   <script src="/jquery-1.7.2.min.js"></script>
   <script src="/phorkie.js"></script>
+  {% block meta %}{% endblock %}
  </head>
  <body>
   {{topbar|raw}}
      </a>
      <ul class="nav">
       <li>
-       <a href="/">New paste</a>
+       <a href="/new">New paste</a>
       </li>
       <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"/>
+        <input type="text" class="search-query" name="q" placeholder="Search" value="{{query}}"/>
        </form>
       </li>
-      -->
+      {% endif %}
      </ul>
     </div>
    </div>