Commit | Line | Data |
---|---|---|
76c9ea6b WKG |
1 | {# |
2 | # GNU MediaGoblin -- federated, autonomous media hosting | |
12a100e4 | 3 | # Copyright (C) 2011 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"> |
78801685 | 22 | <title>{% block title %}{{ app_config['html_title'] }}{% endblock %}</title> |
1344821d | 23 | <link rel="stylesheet" type="text/css" |
2faec367 | 24 | href="{{ request.staticdirect('/css/extlib/reset.css') }}"/> |
1344821d | 25 | <link rel="stylesheet" type="text/css" |
2faec367 | 26 | href="{{ request.staticdirect('/css/extlib/text.css') }}"/> |
f7bcfaff | 27 | <link rel="stylesheet" type="text/css" |
2faec367 | 28 | href="{{ request.staticdirect('/css/extlib/960_16_col.css') }}"/> |
8ac897c3 CAW |
29 | <link rel="stylesheet" type="text/css" |
30 | href="{{ request.staticdirect('/css/base.css') }}"/> | |
a63b640f JW |
31 | <link rel="stylesheet" type="text/css" |
32 | href="{{ request.staticdirect('/css/video-js.css') }}"/> | |
7a8ad818 CAW |
33 | <link rel="shortcut icon" |
34 | href="{{ request.staticdirect('/images/goblin.ico') }}" /> | |
0d6e5ddd JS |
35 | <script type="text/javascript" |
36 | src="{{ request.staticdirect('/js/extlib/jquery.js') }}"></script> | |
00c39256 BK |
37 | {% block mediagoblin_head %} |
38 | {% endblock mediagoblin_head %} | |
a0598d5c | 39 | </head> |
a0598d5c | 40 | <body> |
a0598d5c | 41 | {% block mediagoblin_body %} |
9f661642 | 42 | <div class="mediagoblin_body"> |
a0598d5c | 43 | {% block mediagoblin_header %} |
06a5f21e JS |
44 | <div class="container_16"> |
45 | <div class="grid_16 mediagoblin_header"> | |
46 | {% block mediagoblin_logo %} | |
132aa9d9 CAW |
47 | <a class="mediagoblin_logo" |
48 | href="{{ request.urlgen('index') }}" | |
49 | ><img src="{{ request.staticdirect('/images/logo.png') }}" | |
50 | alt="{% trans %}MediaGoblin logo{% endtrans %}" /></a> | |
06a5f21e | 51 | {% endblock %} |
7a3d00ec | 52 | {% if request.user and request.user.status == 'active' %} |
13423daa | 53 | <a class="button_action" |
f22339d2 | 54 | href="{{ request.urlgen('mediagoblin.submit.start') }}"> |
31f5c456 | 55 | {% trans %}Add media{% endtrans %} |
f22339d2 | 56 | </a> |
06a5f21e JS |
57 | {% endif %} |
58 | {% block mediagoblin_header_title %}{% endblock %} | |
59 | <div class="mediagoblin_header_right"> | |
681e1371 | 60 | {% if request.user %} |
4476adcd CAW |
61 | {# the following link should only appear when verification is needed #} |
62 | {% if request.user.status == "needs_email_verification" %} | |
63 | <a href="{{ request.urlgen('mediagoblin.user_pages.user_home', | |
5a4e3ff1 | 64 | user=request.user.username) }}" |
13423daa JS |
65 | class="button_action_highlight"> |
66 | {% trans %}Verify your email!{% endtrans %}</a> | |
4476adcd CAW |
67 | {% endif %} |
68 | ||
7b6836a3 | 69 | <a href="{{ request.urlgen('mediagoblin.user_pages.user_home', |
5a4e3ff1 E |
70 | user= request.user.username) }}"> |
71 | {{ request.user.username }}</a> | |
7b6836a3 | 72 | |
efd0a42c | 73 | (<a href="{{ request.urlgen('mediagoblin.auth.logout') }}">{% trans %}log out{% endtrans %}</a>) |
06a5f21e | 74 | {% else %} |
97a55309 | 75 | <a href="{{ request.urlgen('mediagoblin.auth.login') }}"> |
924e112b | 76 | {% trans %}Log in{% endtrans %}</a> |
681e1371 | 77 | {% endif %} |
f7bcfaff JS |
78 | </div> |
79 | </div> | |
38aa4a40 | 80 | </div> |
a0598d5c | 81 | {% endblock %} |
18d9287a JS |
82 | <div class="container_16 mediagoblin_content"> |
83 | <div class="grid_16"> | |
741d5a37 | 84 | {% include "mediagoblin/utils/messages.html" %} |
f7bcfaff JS |
85 | {% block mediagoblin_content %} |
86 | {% endblock mediagoblin_content %} | |
87 | </div> | |
a0598d5c | 88 | </div> |
9f661642 | 89 | {% block mediagoblin_footer %} |
06a5f21e JS |
90 | <div class="container_16"> |
91 | <div class="grid_16 mediagoblin_footer"> | |
58b79b15 | 92 | {% trans -%} |
9341f8b8 | 93 | Powered by <a href="http://mediagoblin.org">MediaGoblin</a>, a <a href="http://gnu.org/">GNU</a> project |
58b79b15 | 94 | {%- endtrans %} |
9f661642 JS |
95 | </div> |
96 | </div> | |
9f661642 | 97 | {% endblock %} |
20aaec5f | 98 | {% endblock mediagoblin_body %} |
9f661642 | 99 | </div> |
a0598d5c CAW |
100 | </body> |
101 | </html> |