You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 

78 lines
2.9 KiB

{#
# MediaGoblin for LibrePlanet
# Copyright (C) 2011, 2012 MediaGoblin contributors
# Copyright (C) 2015 David Thompson <davet@gnu.org>
#
# 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
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU Affero General Public License for more details.
#
# You should have received a copy of the GNU Affero General Public License
# along with this program. If not, see <http://www.gnu.org/licenses/>.
#}
{% extends "mediagoblin/base.html" %}
{% from "mediagoblin/utils/object_gallery.html" import media_grid %}
{% set feed_url = request.urlgen('mediagoblin.listings.atom_feed') %}
{% block mediagoblin_head -%}
{% set feed_url = request.urlgen('mediagoblin.listings.atom_feed') -%}
<link rel="alternate" type="application/atom+xml" href="{{ feed_url }}">
{%- endblock mediagoblin_head %}
{% block mediagoblin_content %}
<h1>{% trans %}LibrePlanet{% endtrans %}</h1>
<img class="right_align" src="//static.fsf.org/nosvn/libreplanet/2015/graphical_assets/lp-logo-for-gmg.svg" />
<p>
This site hosts media about free software and the amazing community
that uses and builds it. Much of the media is from our yearly <a href="https://libreplanet.org/wiki/LibrePlanet:Conference">LibrePlanet
conference</a> in Cambridge, MA, USA, but some is from other events.
</p>
<p>
This site and the conference are run by the <a href="https://www.fsf.org">Free Software Foundation</a>, a nonprofit
with three decades of experience promoting and defending computer user
freedom. The site itself is running <a href="http://mediagoblin.org">GNU
MediaGoblin</a>, a wonderful free media hosting platform. Enjoy!
</p>
<div class="clear"></div>
<h2>{% trans %}Featured Videos{% endtrans %}</h2>
{{ media_grid(request, featured_videos) }}
<div class="clear"></div>
<p>
<a href="/videos/featured">View all featured videos</a>
</p>
<h2>{% trans %}Featured Photos{% endtrans %}</h2>
{{ media_grid(request, featured_photos) }}
<div class="clear"></div>
<p>
<a href="/photos/featured">View all featured photos</a>
</p>
<h2>{% trans %}Videos{% endtrans %}</h2>
{{ media_grid(request, videos) }}
<div class="clear"></div>
<p>
<a href="/videos">View all videos</a>
</p>
<h2>{% trans %}Photos{% endtrans %}</h2>
{{ media_grid(request, images) }}
<div class="clear"></div>
<p>
<a href="/photos">View all photos</a>
</p>
{#- 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 %}