Add html doctype
[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 <!doctype html>
19 <html>
20 <head>
21 <meta charset="utf-8">
22 <title>{% block title %}GNU MediaGoblin{% endblock title %}</title>
23 <link rel="stylesheet" type="text/css"
24 href="{{ request.staticdirect('/css/contrib/reset.css') }}"/>
25 <link rel="stylesheet" type="text/css"
26 href="{{ request.staticdirect('/css/contrib/text.css') }}"/>
27 <link rel="stylesheet" type="text/css"
28 href="{{ request.staticdirect('/css/contrib/960_16_col.css') }}"/>
29 <link rel="stylesheet" type="text/css"
30 href="{{ request.staticdirect('/css/base.css') }}"/>
31 {% block mediagoblin_head %}
32 {% endblock mediagoblin_head %}
33 </head>
34
35 <body>
36 {% block mediagoblin_body %}
37 <div class="mediagoblin_body">
38 {% block mediagoblin_header %}
39 <div class="mediagoblin_header">
40 <div class="container_16">
41 <div class="grid_16">
42 {% block mediagoblin_logo %}
43 <a class="mediagoblin_logo" href="{{ request.urlgen('index') }}"><img src="{{ request.staticdirect('/images/logo.png') }}" alt="Mediagoblin logo" /></a>
44 {% endblock %}
45 {% if request.user %}
46 <a class="header_submit" href="{{ request.urlgen('mediagoblin.submit.start') }}">Submit media</a>
47 {% endif %}
48 {% block mediagoblin_header_title %}{% endblock %}
49 <div class="mediagoblin_header_right">
50 {% if request.user %}
51 <a href="{{ request.urlgen('mediagoblin.user_pages.user_home',
52 user= request.user['username']) }}">
53 {{ request.user['username'] }}</a>'s account
54 (<a href="{{ request.urlgen('mediagoblin.auth.logout') }}">logout</a>)
55 {% else %}
56 <a href="{{ request.urlgen('mediagoblin.auth.login') }}">
57 Login</a>
58 {% endif %}
59 </div>
60 </div>
61 </div>
62 </div>
63 {% endblock %}
64 <div class="container_16 mediagoblin_content">
65 <div class="grid_16">
66 {% include "mediagoblin/utils/messages.html" %}
67 {% block mediagoblin_content %}
68 {% endblock mediagoblin_content %}
69 </div>
70 </div>
71 {% block mediagoblin_footer %}
72 <div class="mediagoblin_footer">
73 <div class="container_16">
74 <div class="grid_16">
75 Powered by <a href="http://mediagoblin.org">MediaGoblin</a>, a <a href="http://gnu.org/">GNU project</a>
76 </div>
77 </div>
78 </div>
79 {% endblock %}
80 {% endblock mediagoblin_body %}
81 </div>
82 </body>
83 </html>