MediaGoblin favicon by Alex Camelio!!! OMG.
[mediagoblin.git] / mediagoblin / templates / mediagoblin / base.html
CommitLineData
76c9ea6b
WKG
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/>.
9a5b2da5
CAW
17-#}
18<!doctype html>
a0598d5c
CAW
19<html>
20 <head>
5fa35884 21 <meta charset="utf-8">
8f4c9b81 22 <title>{% block title %}{% trans %}GNU MediaGoblin{% endtrans %}{% endblock title %}</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') }}"/>
7a8ad818
CAW
31 <link rel="shortcut icon"
32 href="{{ request.staticdirect('/images/goblin.ico') }}" />
00c39256
BK
33 {% block mediagoblin_head %}
34 {% endblock mediagoblin_head %}
a0598d5c
CAW
35 </head>
36
37 <body>
a0598d5c 38 {% block mediagoblin_body %}
9f661642 39 <div class="mediagoblin_body">
a0598d5c 40 {% block mediagoblin_header %}
06a5f21e
JS
41 <div class="container_16">
42 <div class="grid_16 mediagoblin_header">
43 {% block mediagoblin_logo %}
6ef35d47
JS
44 <a class="mediagoblin_logo" href="{{ request.urlgen('index') }}">
45 MediaGoblin<img src="{{ request.staticdirect('/images/logo.png') }}"
02bef4ec 46 alt="{% trans %}MediaGoblin logo{% endtrans %}" /></a>
06a5f21e 47 {% endblock %}
dc9cbb38 48 {% if request.user and request.user['status'] == 'active' %}
f22339d2
CAW
49 <a class="header_submit"
50 href="{{ request.urlgen('mediagoblin.submit.start') }}">
8f4c9b81 51 {% trans %}Submit media{% endtrans %}
f22339d2 52 </a>
06a5f21e
JS
53 {% endif %}
54 {% block mediagoblin_header_title %}{% endblock %}
55 <div class="mediagoblin_header_right">
681e1371 56 {% if request.user %}
4476adcd
CAW
57 {# the following link should only appear when verification is needed #}
58 {% if request.user.status == "needs_email_verification" %}
59 <a href="{{ request.urlgen('mediagoblin.user_pages.user_home',
60 user=request.user['username']) }}"
391861ac 61 class="header_submit">
8f4c9b81 62 {% trans %}verify your email!{% endtrans %}</a>
4476adcd
CAW
63 {% endif %}
64
7b6836a3
CAW
65 <a href="{{ request.urlgen('mediagoblin.user_pages.user_home',
66 user= request.user['username']) }}">
67 {{ request.user['username'] }}</a>
68
2ff37624 69 (<a href="{{ request.urlgen('mediagoblin.auth.logout') }}">log out</a>)
06a5f21e 70 {% else %}
97a55309 71 <a href="{{ request.urlgen('mediagoblin.auth.login') }}">
924e112b 72 {% trans %}Log in{% endtrans %}</a>
681e1371 73 {% endif %}
f7bcfaff
JS
74 </div>
75 </div>
38aa4a40 76 </div>
a0598d5c 77 {% endblock %}
18d9287a
JS
78 <div class="container_16 mediagoblin_content">
79 <div class="grid_16">
741d5a37 80 {% include "mediagoblin/utils/messages.html" %}
f7bcfaff
JS
81 {% block mediagoblin_content %}
82 {% endblock mediagoblin_content %}
83 </div>
a0598d5c 84 </div>
9f661642 85 {% block mediagoblin_footer %}
06a5f21e
JS
86 <div class="container_16">
87 <div class="grid_16 mediagoblin_footer">
58b79b15
CAW
88 {% trans -%}
89 Powered by <a href="http://mediagoblin.org">MediaGoblin</a>, a <a href="http://gnu.org/">GNU project</a>
90 {%- endtrans %}
9f661642
JS
91 </div>
92 </div>
9f661642 93 {% endblock %}
20aaec5f 94 {% endblock mediagoblin_body %}
9f661642 95 </div>
a0598d5c
CAW
96 </body>
97</html>