X-Git-Url: https://vcs.fsf.org/?a=blobdiff_plain;f=mediagoblin%2Ftemplates%2Fmediagoblin%2Froot.html;h=15d53af100602e6fce1e70a20f3dd80f8cafb493;hb=408aa9cf3b29d778eb7594e4de1720a6bb158024;hp=bae033c415bcbcc5f4c2b7b7b85065f9c66ed516;hpb=83d3922b6e18221456cd8092d78882912f04cf99;p=mediagoblin.git diff --git a/mediagoblin/templates/mediagoblin/root.html b/mediagoblin/templates/mediagoblin/root.html index bae033c4..15d53af1 100644 --- a/mediagoblin/templates/mediagoblin/root.html +++ b/mediagoblin/templates/mediagoblin/root.html @@ -1,6 +1,6 @@ {# # GNU MediaGoblin -- federated, autonomous media hosting -# Copyright (C) 2011 Free Software Foundation, Inc +# Copyright (C) 2011, 2012 MediaGoblin contributors. See AUTHORS. # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU Affero General Public License as published by @@ -17,27 +17,22 @@ #} {% extends "mediagoblin/base.html" %} -{% block mediagoblin_content %} -

{% trans %}Welcome to GNU MediaGoblin!{% endtrans %}

+{% from "mediagoblin/utils/object_gallery.html" import object_gallery %} + +{% set feed_url = request.urlgen('mediagoblin.listings.atom_feed') %} - {% if request.user %} -

- Submit an item -

- {% else %} -

- If you have an account, you can - Login. -

- {% if allow_registration %} -

- If you don't have an account, please - Register. -

- {% endif %} - {% endif %} +{% block mediagoblin_head -%} + {% set feed_url = request.urlgen('mediagoblin.listings.atom_feed') -%} + +{%- endblock mediagoblin_head %} + +{% block mediagoblin_content %} + {% include "mediagoblin/bits/frontpage_welcome.html" %} - {# temporarily, an "image gallery" that isn't one really ;) #} +

{% trans %}Most recent media{% endtrans %}

+ {{ object_gallery(request, media_entries, pagination) }} - {% include "mediagoblin/utils/object_gallery.html" %} + {#- Need to set feed_url within this block so template can use it. -#} + {%- set feed_url = feed_url -%} + {%- include "mediagoblin/utils/feed_link.html" -%} {% endblock %}