Merge remote-tracking branch 'gitorious/master'
[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/960_12_col.css') }}"/>
23 <link rel="stylesheet" type="text/css"
24 href="{{ request.staticdirect('/css/base.css') }}"/>
25 {% block mediagoblin_head %}
26 {% endblock mediagoblin_head %}
27 </head>
28
29 <body>
30 {% block mediagoblin_body %}
31 <div class="mediagoblin_body">
32 {% block mediagoblin_header %}
33 <div class="mediagoblin_header">
34 <div class="container_12">
35 <div class="grid_12">
36 {% block mediagoblin_logo %}
37 <a class="mediagoblin_logo" href="{{ request.urlgen('index') }}"></a>
38 {% endblock %}{% block mediagoblin_header_title %}{% endblock %}
39 <div class="mediagoblin_header_right">
40 {% if request.user %}
41 <a href="{{ request.urlgen('mediagoblin.user_pages.user_home',
42 user= request.user['username']) }}">
43 {{ request.user['username'] }}</a>'s account
44 (<a href="{{ request.urlgen('mediagoblin.auth.logout') }}">logout</a>)
45 {% else %}
46 <a href="{{ request.urlgen('mediagoblin.auth.login') }}">
47 Login</a>
48 {% endif %}
49 </div>
50 </div>
51 </div>
52 </div>
53 {% endblock %}
54
55 {% include "mediagoblin/utils/messages.html" %}
56
57 <div class="container_12 mediagoblin_content">
58 <div class="grid_12">
59 {% block mediagoblin_content %}
60 {% endblock mediagoblin_content %}
61 </div>
62 </div>
63
64 {% block mediagoblin_footer %}
65 <div class="mediagoblin_footer">
66 <div class="container_12">
67 <div class="grid_12">
68 Powered by <a href="http://mediagoblin.org">MediaGoblin</a>, a <a href="http://gnu.org/">GNU project</a>
69 </div>
70 </div>
71 </div>
72 {% endblock %}
73 {% endblock mediagoblin_body %}
74 </div>
75 </body>
76 </html>