Merge branch 'master' into test_submission_views_365
[mediagoblin.git] / mediagoblin / templates / mediagoblin / root.html
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 #}
18 {% extends "mediagoblin/base.html" %}
19
20 {% block mediagoblin_content %}
21 <h1>{% trans %}Welcome to GNU MediaGoblin!{% endtrans %}</h1>
22
23 {% if request.user %}
24 <p>
25 <a href="{{ request.urlgen('mediagoblin.submit.start') }}">Submit an item</a>
26 </p>
27 {% else %}
28 <p>
29 If you have an account, you can
30 <a href="{{ request.urlgen('mediagoblin.auth.login') }}">Login</a>.
31 </p>
32 {% if allow_registration %}
33 <p>
34 If you don't have an account, please
35 <a href="{{ request.urlgen('mediagoblin.auth.register') }}">Register</a>.
36 </p>
37 {% endif %}
38 {% endif %}
39
40 {# temporarily, an "image gallery" that isn't one really ;) #}
41
42 {% include "mediagoblin/utils/object_gallery.html" %}
43 {% endblock %}