Go back to pre-login URL after loging in
[mediagoblin.git] / mediagoblin / templates / mediagoblin / base.html
CommitLineData
76c9ea6b
WKG
1{#
2# GNU MediaGoblin -- federated, autonomous media hosting
cf29e8a8 3# Copyright (C) 2011, 2012 MediaGoblin contributors. See AUTHORS.
76c9ea6b
WKG
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/>.
9a5b2da5
CAW
17-#}
18<!doctype html>
a0598d5c
CAW
19<html>
20 <head>
5fa35884 21 <meta charset="utf-8">
e58f2599 22 <meta name="viewport" content="width=device-width, initial-scale=1.0">
78801685 23 <title>{% block title %}{{ app_config['html_title'] }}{% endblock %}</title>
1344821d 24 <link rel="stylesheet" type="text/css"
1dc7f28d 25 href="{{ request.staticdirect('/css/extlib/reset.css') }}"/>
8ac897c3
CAW
26 <link rel="stylesheet" type="text/css"
27 href="{{ request.staticdirect('/css/base.css') }}"/>
7a8ad818
CAW
28 <link rel="shortcut icon"
29 href="{{ request.staticdirect('/images/goblin.ico') }}" />
7945cd21 30 <script src="{{ request.staticdirect('/js/extlib/jquery.js') }}"></script>
d297d8e8
JS
31 <script type="text/javascript"
32 src="{{ request.staticdirect('/js/header_dropdown.js') }}"></script>
7945cd21
JS
33 <!--[if lt IE 9]>
34 <script src="{{ request.staticdirect('/js/extlib/html5shiv.js') }}"></script>
35 <![endif]-->
0416b866 36
667d1fc8 37 {% include "mediagoblin/extra_head.html" %}
0416b866 38
00c39256
BK
39 {% block mediagoblin_head %}
40 {% endblock mediagoblin_head %}
a0598d5c 41 </head>
a0598d5c 42 <body>
a0598d5c
CAW
43 {% block mediagoblin_body %}
44 {% block mediagoblin_header %}
afcb0855
JS
45 <header>
46 {% block mediagoblin_logo %}
47 <a class="logo"
48 href="{{ request.urlgen('index') }}"
49 ><img src="{{ request.staticdirect('/images/logo.png') }}"
a4a2e231
JS
50 alt="{% trans %}MediaGoblin logo{% endtrans %}" />
51 </a>
afcb0855 52 {% endblock mediagoblin_logo %}
afcb0855
JS
53 {% block mediagoblin_header_title %}{% endblock %}
54 <div class="header_right">
55 {% if request.user %}
29497982
JS
56 <a href="{{ request.urlgen('mediagoblin.user_pages.user_home', user= request.user.username) }}">{{ request.user.username }}</a>{% trans %}'s account{% endtrans %}
57 (<a href="{{ request.urlgen('mediagoblin.auth.logout') }}">{% trans %}log out{% endtrans %}</a>)
58 {% if request.user and request.user.status == 'active' %}
59 <a class="button_action" href="{{ request.urlgen('mediagoblin.submit.start') }}">{% trans %}Add media{% endtrans %}</a>
60 {% elif request.user and request.user.status == "needs_email_verification" %}
afcb0855 61 {# the following link should only appear when verification is needed #}
7b6836a3 62 <a href="{{ request.urlgen('mediagoblin.user_pages.user_home',
29497982 63 user=request.user.username) }}"
afcb0855 64 class="button_action_highlight">
29497982 65 {% trans %}Verify your email!{% endtrans %}</a>
681e1371 66 {% endif %}
afcb0855 67 {% else %}
d3c6e2a0
SS
68 <a href="{{ request.urlgen('mediagoblin.auth.login') }}?next={{
69 request.base_url|urlencode }}">
afcb0855
JS
70 {% trans %}Log in{% endtrans %}</a>
71 {% endif %}
72 </div>
d297d8e8 73 <div class="clear"></div>
afcb0855 74 </header>
a0598d5c 75 {% endblock %}
afcb0855 76 <div class="container">
1bb8eb89 77 <div class="mediagoblin_content">
741d5a37 78 {% include "mediagoblin/utils/messages.html" %}
f7bcfaff
JS
79 {% block mediagoblin_content %}
80 {% endblock mediagoblin_content %}
a0598d5c 81 </div>
9f661642 82 {% block mediagoblin_footer %}
7945cd21 83 <footer>
416b439f
E
84 {% trans -%}
85 Powered by <a href="http://mediagoblin.org">MediaGoblin</a>, a <a href="http://gnu.org/">GNU</a> project.
86 {%- endtrans %}
ff6933fa 87 {% trans source_link=app_config['source_link'] -%}
416b439f 88 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.
58b79b15 89 {%- endtrans %}
7945cd21
JS
90 </footer>
91 {% endblock mediagoblin_footer %}
20aaec5f 92 {% endblock mediagoblin_body %}
9f661642 93 </div>
a0598d5c
CAW
94 </body>
95</html>