Merge remote branch 'refs/remotes/elrond/idea/new_get_page_url'
[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/>.
17#}
a0598d5c
CAW
18<html>
19 <head>
8e1e744d 20 <title>{% block title %}MediaGoblin{% endblock title %}</title>
8ac897c3
CAW
21 <link rel="stylesheet" type="text/css"
22 href="{{ request.staticdirect('/css/base.css') }}"/>
a0598d5c
CAW
23 </head>
24
25 <body>
a0598d5c
CAW
26 {% block mediagoblin_body %}
27 {% block mediagoblin_header %}
4a0f823e
JS
28 <div class="mediagoblin_header">
29 <div class="mediagoblin_content">
a0598d5c 30 {% block mediagoblin_logo %}
8e1e744d 31 <a href="{{ request.urlgen('index') }}">MediaGoblin</a>
4a0f823e 32 {% endblock %}{% block mediagoblin_header_title %}MediaGoblin Home{% endblock %}
a0598d5c 33 {% block mediagoblin_header_subtitle %}
a3fdcf5c 34 Clever subtitle here!
4a0f823e 35 {% endblock %}
a3fdcf5c 36 {% if request.user %}
59dd5c7e 37 Welcome {{ request.user['username'] }}! --
a3fdcf5c
CAW
38 <a href="{{ request.urlgen('mediagoblin.auth.logout') }}">
39 Logout</a>
a3fdcf5c 40 {% else %}
a3fdcf5c
CAW
41 <a href="{{ request.urlgen('mediagoblin.auth.login') }}">
42 Login</a>
a3fdcf5c 43 {% endif %}
4a0f823e
JS
44 </div>
45 </div>
a0598d5c 46 {% endblock %}
4a0f823e 47 <div class="mediagoblin_content">
a0598d5c
CAW
48 {% block mediagoblin_content %}
49 {% endblock mediagoblin_content %}
50 </div>
20aaec5f 51 {% endblock mediagoblin_body %}
a0598d5c
CAW
52 </body>
53</html>