add vcs-git links to html head, to support autodiscovery apart from DOAP - http:...
[phorkie.git] / data / templates / base.htm
1 <?xml version="1.0" encoding="utf-8"?>
2 <!DOCTYPE html>
3 <html>
4  <head>
5   <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
6   <link rel="stylesheet" href="{{css}}"/>
7   <link rel="stylesheet" href="/css/phorkie.css" />
8   <title>{% block title %}{% endblock %} - {{title}}</title>
9   <script src="/js/jquery-1.7.2.min.js"></script>
10   <script src="/js/phorkie.js"></script>
11   {% block meta %}{% endblock %}
12  </head>
13  <body>
14   {{topbar|raw}}
15   <div class="navbar">
16    <div class="navbar-inner">
17     <div class="container">
18      <a class="brand" href="/">
19       {{title}}
20      </a>
21      <ul class="nav">
22       <li>
23        <a href="/new">New paste</a>
24       </li>
25       <li>
26        <a href="/list">List all</a>
27       </li>
28       {% if identity %}
29       <li>
30        <a href="/user">{{name}} ({{email}})</a>
31       </li>
32       <li>
33        <a href="/login?logout">Logout</a>
34       </li>
35       {% else %}
36       <li>
37        <a href="/login">Login</a>
38       </li>
39       {% endif %}
40       {% if db.adapter %}
41       <li>
42        <form class="navbar-search pull-left" action="/search" method="get">
43         <input type="text" class="search-query" name="q" placeholder="Search" value="{{query}}"/>
44        </form>
45       </li>
46       {% endif %}
47      </ul>
48     </div>
49    </div>
50   </div>
51
52   <div class="container">
53    <div class="row">
54     <div class="span9">
55      {% block content %}{% endblock %}
56     </div>
57     <div class="span3">
58      <div style="height: 1em"></div>
59      {% block sidebar %}{% endblock %}
60     </div>
61    </div>
62   </div>
63
64   <div class="container footer">
65    <a href="//sf.net/p/phorkie/">phorkie</a>,
66    the self-hosted, git-based pastebin software is available under the
67    <a href="https://sf.net/p/phorkie/">
68     <abbr title="GNU Affero General Public License">AGPL</abbr></a>.
69   </div>
70
71  </body>
72 </html>