It's 2012 all up in here
[mediagoblin.git] / mediagoblin / templates / mediagoblin / root.html
1 {#
2 # GNU MediaGoblin -- federated, autonomous media hosting
3 # Copyright (C) 2011, 2012 MediaGoblin contributors. See AUTHORS.
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 #}
18 {% extends "mediagoblin/base.html" %}
19
20 {% from "mediagoblin/utils/object_gallery.html" import object_gallery %}
21
22 {% block mediagoblin_content %}
23 {% if request.user %}
24 <h1>{% trans %}Explore{% endtrans %}</h1>
25 {% else %}
26 <h1>{% trans %}Hi there, welcome to this MediaGoblin site!{% endtrans %}</h1>
27 <img class="right_align" src="{{ request.staticdirect('/images/frontpage_image.png') }}" />
28 <p>{% trans %}This site is running <a href="http://mediagoblin.org">MediaGoblin</a>, an extraordinarily great piece of media hosting software.{% endtrans %}</p>
29 <p>{% trans %}To add your own media, place comments, save your favourites and more, you can log in with your MediaGoblin account.{% endtrans %}</p>
30 {% if allow_registration %}
31 <p>{% trans %}Don't have one yet? It's easy!{% endtrans %}</p>
32 {% trans register_url=request.urlgen('mediagoblin.auth.register') -%}
33 <a class="button_action_highlight" href="{{ register_url }}">Create an account at this site</a>
34 or
35 <a class="button_action" href="http://wiki.mediagoblin.org/HackingHowto">Set up MediaGoblin on your own server</a>
36 {%- endtrans %}
37 {% endif %}
38 <div class="clear"></div>
39 {% endif %}
40 <h2>{% trans %}Most recent media{% endtrans %}</h2>
41 {{ object_gallery(request, media_entries, pagination) }}
42 {% endblock %}