Commit | Line | Data |
---|---|---|
724f8731 DT |
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/2015/graphical_assets/lp-logo-for-gmg.svg" /> | |
e2d51850 SM |
33 | <p> |
34 | This site hosts media about free software and the amazing community | |
35 | that uses and builds it. Much of the media is from our yearly <a href="https://libreplanet.org/wiki/LibrePlanet:Conference">LibrePlanet | |
36 | conference</a> in Cambridge, MA, USA, but some is from other events. | |
37 | </p> | |
38 | ||
39 | <p> | |
82b52c1e | 40 | This site and the conference are run by the <a href="https://www.fsf.org">Free Software Foundation</a>, a nonprofit |
e2d51850 SM |
41 | with three decades of experience promoting and defending computer user |
42 | freedom. The site itself is running <a href="http://mediagoblin.org">GNU | |
43 | MediaGoblin</a>, a wonderful free media hosting platform. Enjoy! | |
44 | </p> | |
724f8731 DT |
45 | <div class="clear"></div> |
46 | ||
88cb2585 AE |
47 | <h2>{% trans %}LibrePlanet 2016 Videos{% endtrans %}</h2> |
48 | {{ media_grid(request, lp2016_videos) }} | |
49 | <div class="clear"></div> | |
50 | <p> | |
51 | <a href="/u/libreplanet/tag/libreplanet-2016-video/">View all LibrePlanet 2016 videos</a> | |
52 | </p> | |
53 | ||
18b42e10 AE |
54 | {# commenting out featured media sections for front page #} |
55 | {# | |
26712623 AE |
56 | <h2>{% trans %}Featured Videos{% endtrans %}</h2> |
57 | {{ media_grid(request, featured_videos) }} | |
58 | <div class="clear"></div> | |
59 | <p> | |
60 | <a href="/videos/featured">View all featured videos</a> | |
61 | </p> | |
62 | ||
63 | <h2>{% trans %}Featured Photos{% endtrans %}</h2> | |
957bde30 | 64 | {{ media_grid(request, featured_images) }} |
26712623 AE |
65 | <div class="clear"></div> |
66 | <p> | |
67 | <a href="/photos/featured">View all featured photos</a> | |
68 | </p> | |
18b42e10 | 69 | #} |
26712623 | 70 | |
b05a2467 | 71 | <h2>{% trans %}All Videos{% endtrans %}</h2> |
724f8731 DT |
72 | {{ media_grid(request, videos) }} |
73 | <div class="clear"></div> | |
74 | <p> | |
2c2ba020 | 75 | <a href="/videos">View all videos</a> |
724f8731 DT |
76 | </p> |
77 | ||
b05a2467 | 78 | <h2>{% trans %}All Photos{% endtrans %}</h2> |
724f8731 DT |
79 | {{ media_grid(request, images) }} |
80 | <div class="clear"></div> | |
81 | <p> | |
2c2ba020 | 82 | <a href="/photos">View all photos</a> |
724f8731 DT |
83 | </p> |
84 | ||
85 | {#- Need to set feed_url within this block so template can use it. -#} | |
86 | {%- set feed_url = feed_url -%} | |
87 | {%- include "mediagoblin/utils/feed_link.html" -%} | |
88 | {% endblock %} |