Merge branch 'master' into test_submission_views_365
[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') }}"></a>
42 {% endblock %}{% block mediagoblin_header_title %}{% endblock %}
43 <div class="mediagoblin_header_right">
44 {% if request.user %}
45 <a href="{{ request.urlgen('mediagoblin.user_pages.user_home',
46 user= request.user['username']) }}">
47 {{ request.user['username'] }}</a>'s account
48 (<a href="{{ request.urlgen('mediagoblin.auth.logout') }}">logout</a>)
49 {% else %}
50 <a href="{{ request.urlgen('mediagoblin.auth.login') }}">
51 Login</a>
52 {% endif %}
53 </div>
54 </div>
55 </div>
56 </div>
57 {% endblock %}
58 <div class="container_16 mediagoblin_content">
59 <div class="grid_16">
60 {% include "mediagoblin/utils/messages.html" %}
61 {% block mediagoblin_content %}
62 {% endblock mediagoblin_content %}
63 </div>
64 </div>
65 {% block mediagoblin_footer %}
66 <div class="mediagoblin_footer">
67 <div class="container_16">
68 <div class="grid_16">
69 Powered by <a href="http://mediagoblin.org">MediaGoblin</a>, a <a href="http://gnu.org/">GNU project</a>
70 </div>
71 </div>
72 </div>
73 {% endblock %}
74 {% endblock mediagoblin_body %}
75 </div>
76 </body>
77 </html>