2 # GNU MediaGoblin -- federated, autonomous media hosting
3 # Copyright (C)
2011,
2012 MediaGoblin contributors. See AUTHORS.
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.
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.
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
/>.
21 <meta charset=
"utf-8">
22 <meta name=
"viewport" content=
"width=device-width, initial-scale=1.0">
23 <title>{% block title %}{{ app_config['html_title'] }}{% endblock %}
</title>
24 <link rel=
"stylesheet" type=
"text/css"
25 href=
"{{ request.staticdirect('/css/extlib/reset.css') }}"/>
26 <link rel=
"stylesheet" type=
"text/css"
27 href=
"{{ request.staticdirect('/css/base.css') }}"/>
28 <link rel=
"shortcut icon"
29 href=
"{{ request.staticdirect('/images/goblin.ico') }}" />
30 <script src=
"{{ request.staticdirect('/js/extlib/jquery.js') }}"></script>
32 <script src="{{ request.staticdirect('/js/extlib/html5shiv.js') }}"></script>
34 {% block mediagoblin_head %}
35 {% endblock mediagoblin_head %}
38 {% block mediagoblin_body %}
39 {% block mediagoblin_header %}
41 {% block mediagoblin_logo %}
43 href=
"{{ request.urlgen('index') }}"
44 ><img src=
"{{ request.staticdirect('/images/logo.png') }}"
45 alt=
"{% trans %}MediaGoblin logo{% endtrans %}" /></a>
46 {% endblock mediagoblin_logo %}
47 {% if request.user and request.user.status == 'active' %}
48 <a class=
"button_action"
49 href=
"{{ request.urlgen('mediagoblin.submit.start') }}">
50 {% trans %}Add media{% endtrans %}
53 {% block mediagoblin_header_title %}{% endblock %}
54 <div class=
"header_right">
56 {# the following link should only appear when verification is needed #}
57 {% if request.user.status ==
"needs_email_verification" %}
58 <a href=
"{{ request.urlgen('mediagoblin.user_pages.user_home',
59 user=request.user.username) }}"
60 class=
"button_action_highlight">
61 {% trans %}Verify your email!{% endtrans %}
</a>
63 <a href=
"{{ request.urlgen('mediagoblin.user_pages.user_home',
64 user= request.user.username) }}">
65 {{ request.user.username }}
</a>
66 (
<a href=
"{{ request.urlgen('mediagoblin.auth.logout') }}">{% trans %}log out{% endtrans %}
</a>)
68 <a href=
"{{ request.urlgen('mediagoblin.auth.login') }}">
69 {% trans %}Log in{% endtrans %}
</a>
74 <div class=
"container">
75 <div class=
"mediagoblin_content">
76 {% include
"mediagoblin/utils/messages.html" %}
77 {% block mediagoblin_content %}
78 {% endblock mediagoblin_content %}
80 {% block mediagoblin_footer %}
83 Powered by
<a href=
"http://mediagoblin.org">MediaGoblin
</a>, a
<a href=
"http://gnu.org/">GNU
</a> project.
85 {% trans source_link=app_config['source_link'] -%}
86 Released under the
<a href=
"http://www.fsf.org/licensing/licenses/agpl-3.0.html">AGPL
</a>.
<a href=
"{{ source_link }}">Source code
</a> available.
89 {% endblock mediagoblin_footer %}
90 {% endblock mediagoblin_body %}