Mark two strings for translation
[mediagoblin.git] / mediagoblin / templates / mediagoblin / base.html
1 {#
2 # GNU MediaGoblin -- federated, autonomous media hosting
3 # Copyright (C) 2011 MediaGoblin contributors. See AUTHORS.
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 %}{% trans %}GNU MediaGoblin{% endtrans %}{% endblock title %}</title>
23 <link rel="stylesheet" type="text/css"
24 href="{{ request.staticdirect('/css/extlib/reset.css') }}"/>
25 <link rel="stylesheet" type="text/css"
26 href="{{ request.staticdirect('/css/extlib/text.css') }}"/>
27 <link rel="stylesheet" type="text/css"
28 href="{{ request.staticdirect('/css/extlib/960_16_col.css') }}"/>
29 <link rel="stylesheet" type="text/css"
30 href="{{ request.staticdirect('/css/base.css') }}"/>
31 <link rel="shortcut icon"
32 href="{{ request.staticdirect('/images/goblin.ico') }}" />
33 {% block mediagoblin_head %}
34 {% endblock mediagoblin_head %}
35 </head>
36
37 <body>
38 {% block mediagoblin_body %}
39 <div class="mediagoblin_body">
40 {% block mediagoblin_header %}
41 <div class="container_16">
42 <div class="grid_16 mediagoblin_header">
43 {% block mediagoblin_logo %}
44 <a class="mediagoblin_logo"
45 href="{{ request.urlgen('index') }}"
46 ><img src="{{ request.staticdirect('/images/logo.png') }}"
47 alt="{% trans %}MediaGoblin logo{% endtrans %}" /></a>
48 {% endblock %}
49 {% if request.user and request.user['status'] == 'active' %}
50 <a class="header_submit"
51 href="{{ request.urlgen('mediagoblin.submit.start') }}">
52 {% trans %}Submit media{% endtrans %}
53 </a>
54 {% endif %}
55 {% block mediagoblin_header_title %}{% endblock %}
56 <div class="mediagoblin_header_right">
57 {% if request.user %}
58 {# the following link should only appear when verification is needed #}
59 {% if request.user.status == "needs_email_verification" %}
60 <a href="{{ request.urlgen('mediagoblin.user_pages.user_home',
61 user=request.user['username']) }}"
62 class="header_submit">
63 {% trans %}verify your email!{% endtrans %}</a>
64 {% endif %}
65
66 <a href="{{ request.urlgen('mediagoblin.user_pages.user_home',
67 user= request.user['username']) }}">
68 {{ request.user['username'] }}</a>
69
70 (<a href="{{ request.urlgen('mediagoblin.auth.logout') }}">{% trans %}log out{% endtrans %}</a>)
71 {% else %}
72 <a href="{{ request.urlgen('mediagoblin.auth.login') }}">
73 {% trans %}Log in{% endtrans %}</a>
74 {% endif %}
75 </div>
76 </div>
77 </div>
78 {% endblock %}
79 <div class="container_16 mediagoblin_content">
80 <div class="grid_16">
81 {% include "mediagoblin/utils/messages.html" %}
82 {% block mediagoblin_content %}
83 {% endblock mediagoblin_content %}
84 </div>
85 </div>
86 {% block mediagoblin_footer %}
87 <div class="container_16">
88 <div class="grid_16 mediagoblin_footer">
89 {% trans -%}
90 Powered by <a href="http://mediagoblin.org">MediaGoblin</a>, a <a href="http://gnu.org/">GNU</a> project
91 {%- endtrans %}
92 </div>
93 </div>
94 {% endblock %}
95 {% endblock mediagoblin_body %}
96 </div>
97 </body>
98 </html>