Merge remote branch 'remotes/jwandborg/f431-prevent_comment_link_expiry'
[mediagoblin.git] / mediagoblin / templates / mediagoblin / base.html
1 {#
2 # GNU MediaGoblin -- federated, autonomous media hosting
3 # Copyright (C) 2011 Free Software Foundation, Inc
4 #
5 # This program is free software: you can redistribute it and/or modify
6 # it under the terms of the GNU Affero General Public License as published by
7 # the Free Software Foundation, either version 3 of the License, or
8 # (at your option) any later version.
9 #
10 # This program is distributed in the hope that it will be useful,
11 # but WITHOUT ANY WARRANTY; without even the implied warranty of
12 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13 # GNU Affero General Public License for more details.
14 #
15 # You should have received a copy of the GNU Affero General Public License
16 # along with this program. If not, see <http://www.gnu.org/licenses/>.
17 #}
18 <html>
19 <head>
20 <title>{% block title %}GNU MediaGoblin{% endblock title %}</title>
21 <link rel="stylesheet" type="text/css"
22 href="{{ request.staticdirect('/css/contrib/reset.css') }}"/>
23 <link rel="stylesheet" type="text/css"
24 href="{{ request.staticdirect('/css/contrib/text.css') }}"/>
25 <link rel="stylesheet" type="text/css"
26 href="{{ request.staticdirect('/css/contrib/960_16_col.css') }}"/>
27 <link rel="stylesheet" type="text/css"
28 href="{{ request.staticdirect('/css/base.css') }}"/>
29 {% block mediagoblin_head %}
30 {% endblock mediagoblin_head %}
31 </head>
32
33 <body>
34 {% block mediagoblin_body %}
35 <div class="mediagoblin_body">
36 {% block mediagoblin_header %}
37 <div class="mediagoblin_header">
38 <div class="container_16">
39 <div class="grid_16">
40 {% block mediagoblin_logo %}
41 <a class="mediagoblin_logo" href="{{ request.urlgen('index') }}"><img src="{{ request.staticdirect('/images/logo.png') }}" alt="Mediagoblin logo" /></a>
42 {% endblock %}
43 {% if request.user %}
44 <a class="header_submit" href="{{ request.urlgen('mediagoblin.submit.start') }}">Submit media</a>
45 {% endif %}
46 {% block mediagoblin_header_title %}{% endblock %}
47 <div class="mediagoblin_header_right">
48 {% if request.user %}
49 <a href="{{ request.urlgen('mediagoblin.user_pages.user_home',
50 user= request.user['username']) }}">
51 {{ request.user['username'] }}</a>'s account
52 (<a href="{{ request.urlgen('mediagoblin.auth.logout') }}">logout</a>)
53 {% else %}
54 <a href="{{ request.urlgen('mediagoblin.auth.login') }}">
55 Login</a>
56 {% endif %}
57 </div>
58 </div>
59 </div>
60 </div>
61 {% endblock %}
62 <div class="container_16 mediagoblin_content">
63 <div class="grid_16">
64 {% include "mediagoblin/utils/messages.html" %}
65 {% block mediagoblin_content %}
66 {% endblock mediagoblin_content %}
67 </div>
68 </div>
69 {% block mediagoblin_footer %}
70 <div class="mediagoblin_footer">
71 <div class="container_16">
72 <div class="grid_16">
73 Powered by <a href="http://mediagoblin.org">MediaGoblin</a>, a <a href="http://gnu.org/">GNU project</a>
74 </div>
75 </div>
76 </div>
77 {% endblock %}
78 {% endblock mediagoblin_body %}
79 </div>
80 </body>
81 </html>