Fix pagination
[mediagoblin-libreplanet.git] / mediagoblin_libreplanet / templates / libreplanet / root.html
1 {#
2 # MediaGoblin for LibrePlanet
3 # Copyright (C) 2011, 2012 MediaGoblin contributors
4 # Copyright (C) 2015 David Thompson <davet@gnu.org>
5 #
6 # This program is free software: you can redistribute it and/or modify
7 # it under the terms of the GNU Affero General Public License as published by
8 # the Free Software Foundation, either version 3 of the License, or
9 # (at your option) any later version.
10 #
11 # This program is distributed in the hope that it will be useful,
12 # but WITHOUT ANY WARRANTY; without even the implied warranty of
13 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 # GNU Affero General Public License for more details.
15 #
16 # You should have received a copy of the GNU Affero General Public License
17 # along with this program. If not, see <http://www.gnu.org/licenses/>.
18 #}
19 {% extends "mediagoblin/base.html" %}
20
21 {% from "mediagoblin/utils/object_gallery.html" import media_grid %}
22
23 {% set feed_url = request.urlgen('mediagoblin.listings.atom_feed') %}
24
25 {% block mediagoblin_head -%}
26 {% set feed_url = request.urlgen('mediagoblin.listings.atom_feed') -%}
27 <link rel="alternate" type="application/atom+xml" href="{{ feed_url }}">
28 {%- endblock mediagoblin_head %}
29
30 {% block mediagoblin_content %}
31 <h1>{% trans %}LibrePlanet{% endtrans %}</h1>
32 <img class="right_align" src="//static.fsf.org/nosvn/libreplanet/wiki/lp_logo_small_stacked.png" />
33 <p>
34 This site hosts media about free software and the amazing community that uses
35 and builds it. Much of the media is from our yearly
36 <a href="https://libreplanet.org/wiki/LibrePlanet:Conference">
37 LibrePlanet conference</a> in the Boston area, USA, but some is from other
38 events.
39 </p>
40
41 <p>
42 This site and the conference are run by the <a href="https://www.fsf.org">
43 Free Software Foundation</a>, a nonprofit with three decades of experience
44 promoting and defending computer user freedom. The site itself is running
45 <a href="http://mediagoblin.org">GNU MediaGoblin</a>, a wonderful free media
46 hosting platform. Enjoy!
47 </p>
48 <div class="clear"></div>
49
50 <div style="margin-top:40px;">
51 <p>We uploaded most of the LibrePlanet 2017 videos! We'll add the rest as soon as we can.</p>
52 </div>
53
54 <h2>{% trans %}LibrePlanet 2017 Keynotes{% endtrans %}</h2>
55 {{ media_grid(request, lp2017_keynotes) }}
56 <div class="clear"></div>
57
58 <h2>{% trans %}LibrePlanet 2017 Videos{% endtrans %}</h2>
59 {{ media_grid(request, lp2017_videos) }}
60 <div class="clear"></div>
61 <p>
62 <a href="/u/libreplanet/tag/libreplanet-2017-video/">View all LibrePlanet 2017 videos</a>
63 </p>
64
65 <h2>{% trans %}LibrePlanet 2016 Videos{% endtrans %}</h2>
66 {{ media_grid(request, lp2016_videos) }}
67 <div class="clear"></div>
68 <p>
69 <a href="/u/libreplanet/tag/libreplanet-2016-video/">View all LibrePlanet 2016 videos</a>
70 </p>
71
72 {# commenting out featured media sections for front page #}
73 {#
74 <h2>{% trans %}Featured Videos{% endtrans %}</h2>
75 {{ media_grid(request, featured_videos) }}
76 <div class="clear"></div>
77 <p>
78 <a href="/videos/featured">View all featured videos</a>
79 </p>
80
81 <h2>{% trans %}Featured Photos{% endtrans %}</h2>
82 {{ media_grid(request, featured_images) }}
83 <div class="clear"></div>
84 <p>
85 <a href="/photos/featured">View all featured photos</a>
86 </p>
87 #}
88
89 <h2>{% trans %}All Videos{% endtrans %}</h2>
90 {{ media_grid(request, videos) }}
91 <div class="clear"></div>
92 <p>
93 <a href="/videos">View all videos</a>
94 </p>
95
96 <h2>{% trans %}All Photos{% endtrans %}</h2>
97 {{ media_grid(request, images) }}
98 <div class="clear"></div>
99 <p>
100 <a href="/photos">View all photos</a>
101 </p>
102
103 <p>
104 {#- Need to set feed_url within this block so template can use it. -#}
105 {%- set feed_url = feed_url -%}
106 {%- include "mediagoblin/utils/feed_link.html" -%}
107 </p>
108
109 <p>
110 Contact sysadmin@fsf.org to report technical problems.
111 </p>
112 {% endblock %}