customizable top bar
[phorkie.git] / data / templates / base.htm
index d0c3cee..867481c 100644 (file)
@@ -1,17 +1,58 @@
+<?xml version="1.0" encoding="utf-8"?>
 <!DOCTYPE html>
 <html>
  <head>
-  <link rel="stylesheet" href="phorkie.css" />
-  <title>{% block title %}{% endblock %} - Phorkie</title>
+  <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>
  </head>
  <body>
-  <nav>
-   <ul>
-    <a href="/">New paste</a>
-    <a href="/list">List all</a>
-    <a href="/search">Search</a>
-   </ul>
-  </nav>
-  <article>{% block content %}{% endblock %}</article>
+  {{topbar|raw}}
+  <div class="navbar">
+   <div class="navbar-inner">
+    <div class="container">
+     <a class="brand" href="/">
+      {{title}}
+     </a>
+     <ul class="nav">
+      <li>
+       <a href="/">New paste</a>
+      </li>
+      <li>
+       <a href="/list">List all</a>
+      </li>
+      <!--
+      <li>
+       <form class="navbar-search pull-left" action="/search" method="get">
+        <input type="text" class="search-query" name="q" placeholder="Search"/>
+       </form>
+      </li>
+      -->
+     </ul>
+    </div>
+   </div>
+  </div>
+
+  <div class="container">
+   <div class="row">
+    <div class="span9">
+     {% block content %}{% endblock %}
+    </div>
+    <div class="span3">
+     <div style="height: 1em"></div>
+     {% block sidebar %}{% endblock %}
+    </div>
+   </div>
+  </div>
+
+  <div class="container footer">
+   <a href="//sf.net/p/phorkie/">phorkie</a>,
+   the self-hosted, git-based pastebin software is available under the
+   <a href="https://sf.net/p/phorkie/">
+    <acronym title="GNU Affero General Public License">AGPL</acronym></a>.
+  </div>
+
  </body>
 </html>
\ No newline at end of file