remote forking: use the original http/https url in description
[phorkie.git] / data / templates / base.htm
index f36f53bba985f76f52792781c8ee34a9dd7c310b..dc065662b29b37eb91c0d8f926c4d7ce20e6cbff 100644 (file)
@@ -2,44 +2,73 @@
 <!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 %} - Phorkie</title>
-  <script src="/jquery-1.7.2.min.js"></script>
+  <link rel="stylesheet" href="/css/phorkie.css" />
+  <title>{% block title %}{% endblock %} - {{title}}</title>
+  <script src="/js/jquery-1.7.2.min.js"></script>
+  <script src="/js/phorkie.js"></script>
+  {% block meta %}{% endblock %}
  </head>
  <body>
+  {{topbar|raw}}
   <div class="navbar">
    <div class="navbar-inner">
     <div class="container">
      <a class="brand" href="/">
-      Phorkie
+      {{title}}
      </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"/>
+       <form class="navbar-search" action="/search" method="get">
+        <input type="text" class="search-query" name="q" placeholder="Search" value="{{query}}"/>
        </form>
       </li>
+      {% endif %}
+     </ul>
+     <ul class="nav pull-right">
+      {% if identity %}
+      <li>
+       <a href="/user">{{name}} ({{email}})</a>
+      </li>
+      <li>
+       <a href="/login?logout">Logout</a>
+      </li>
+      {% else %}
+      <li>
+       <a href="/login">Login</a>
+      </li>
+      {% endif %}
      </ul>
     </div>
    </div>
   </div>
 
-  <div class="container-fluid">
+  <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/">
+    <abbr title="GNU Affero General Public License">AGPL</abbr></a>.
+  </div>
+
  </body>
-</html>
\ No newline at end of file
+</html>