Changing datetime formatting from |format to .stftime()
[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 %}{% 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 {% 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="container_16">
40 <div class="grid_16 mediagoblin_header">
41 {% block mediagoblin_logo %}
42 <a class="mediagoblin_logo" href="{{ request.urlgen('index') }}">
43 MediaGoblin<img src="{{ request.staticdirect('/images/logo.png') }}"
44 alt="{% trans %}MediaGoblin logo{% endtrans %}" /></a>
45 {% endblock %}
46 {% if request.user and request.user['status'] == 'active' %}
47 <a class="header_submit"
48 href="{{ request.urlgen('mediagoblin.submit.start') }}">
49 {% trans %}Submit media{% endtrans %}
50 </a>
51 {% endif %}
52 {% block mediagoblin_header_title %}{% endblock %}
53 <div class="mediagoblin_header_right">
54 {% if request.user %}
55 {# the following link should only appear when verification is needed #}
56 {% if request.user.status == "needs_email_verification" %}
57 <a href="{{ request.urlgen('mediagoblin.user_pages.user_home',
58 user=request.user['username']) }}"
59 class="header_submit">
60 {% trans %}verify your email!{% endtrans %}</a>
61 {% endif %}
62
63 <a href="{{ request.urlgen('mediagoblin.user_pages.user_home',
64 user= request.user['username']) }}">
65 {{ request.user['username'] }}</a>
66
67 (<a href="{{ request.urlgen('mediagoblin.auth.logout') }}">logout</a>)
68 {% else %}
69 <a href="{{ request.urlgen('mediagoblin.auth.login') }}">
70 {% trans %}Login{% endtrans %}</a>
71 {% endif %}
72 </div>
73 </div>
74 </div>
75 {% endblock %}
76 <div class="container_16 mediagoblin_content">
77 <div class="grid_16">
78 {% include "mediagoblin/utils/messages.html" %}
79 {% block mediagoblin_content %}
80 {% endblock mediagoblin_content %}
81 </div>
82 </div>
83 {% block mediagoblin_footer %}
84 <div class="container_16">
85 <div class="grid_16 mediagoblin_footer">
86 {% trans -%}
87 Powered by <a href="http://mediagoblin.org">MediaGoblin</a>, a <a href="http://gnu.org/">GNU project</a>
88 {%- endtrans %}
89 </div>
90 </div>
91 {% endblock %}
92 {% endblock mediagoblin_body %}
93 </div>
94 </body>
95 </html>