collections: add support to browse existing collections
[mediagoblin.git] / mediagoblin / templates / mediagoblin / root.html
CommitLineData
87b44d61
WKG
1{#
2# GNU MediaGoblin -- federated, autonomous media hosting
cf29e8a8 3# Copyright (C) 2011, 2012 MediaGoblin contributors. See AUTHORS.
87b44d61
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/>.
17#}
18{% extends "mediagoblin/base.html" %}
19
38bf03c6
CAW
20{% from "mediagoblin/utils/object_gallery.html" import object_gallery %}
21
87b44d61 22{% block mediagoblin_content %}
87b44d61 23 {% if request.user %}
9e443248
JS
24 {% if request.user.status == 'active' %}
25 <h1>{% trans %}Actions{% endtrans %}</h1>
9498e3e7
E
26 <ul>
27 <li><a href="{{ request.urlgen('mediagoblin.submit.start') }}">
28 {%- trans %}Add media{% endtrans -%}
29 </a></li>
b0cc1ade
SZ
30 <li><a href="{{ request.urlgen('mediagoblin.user_pages.user_collections',
31 user=request.user.username) }}">
32 {%- trans %}Browse collections{% endtrans -%}
33 </a></li>
9498e3e7
E
34 <li><a href="{{ request.urlgen('mediagoblin.edit.account') }}">
35 {%- trans %}Change account settings{% endtrans -%}
36 </a></li>
37 <li><a href="{{ request.urlgen('mediagoblin.user_pages.processing_panel',
38 user=request.user.username) }}">
39 {%- trans %}Media processing panel{% endtrans -%}
40 </a></li>
41 {% if request.user.is_admin %}
42 <li>Admin:
43 <ul>
44 <li><a href="{{ request.urlgen('mediagoblin.admin.panel') }}">
45 {%- trans %}Media processing panel{% endtrans -%}
46 </a></li>
47 </ul>
48 </li>
49 {% endif %}
50 </ul>
9e443248 51 {% endif %}
3d95afeb 52 <h1>{% trans %}Explore{% endtrans %}</h1>
87b44d61 53 {% else %}
3ea6a305 54 <h1>{% trans %}Hi there, welcome to this MediaGoblin site!{% endtrans %}</h1>
7df9f45c 55 <img class="right_align" src="{{ request.staticdirect('/images/frontpage_image.png') }}" />
3ea6a305 56 <p>{% trans %}This site is running <a href="http://mediagoblin.org">MediaGoblin</a>, an extraordinarily great piece of media hosting software.{% endtrans %}</p>
468d2547 57 <p>{% trans %}To add your own media, place comments, and more, you can log in with your MediaGoblin account.{% endtrans %}</p>
3ea6a305
JS
58 {% if allow_registration %}
59 <p>{% trans %}Don't have one yet? It's easy!{% endtrans %}</p>
60 {% trans register_url=request.urlgen('mediagoblin.auth.register') -%}
61 <a class="button_action_highlight" href="{{ register_url }}">Create an account at this site</a>
62 or
63 <a class="button_action" href="http://wiki.mediagoblin.org/HackingHowto">Set up MediaGoblin on your own server</a>
64 {%- endtrans %}
65 {% endif %}
c9fe89a4 66 <div class="clear"></div>
87b44d61 67 {% endif %}
3d95afeb 68 <h2>{% trans %}Most recent media{% endtrans %}</h2>
38bf03c6 69 {{ object_gallery(request, media_entries, pagination) }}
ae85ed0f 70{% endblock %}