]> git.0d.be Git - panikweb.git/commitdiff
Add rss, atom & podcast feeds
authorlaron <simon@surlaterre.org>
Fri, 27 Sep 2013 17:19:30 +0000 (19:19 +0200)
committerlaron <simon@surlaterre.org>
Fri, 27 Sep 2013 17:19:30 +0000 (19:19 +0200)
panikweb_templates/templates/base.html
panikweb_templates/templates/home.html
panikweb_templates/templates/includes/player.html
panikweb_templates/templates/news.html

index f03ac8d02779ad0febddd56821afee86ac9d7772..d82c315817d055a61e768270b30a8738634d4d7c 100644 (file)
@@ -8,6 +8,10 @@
     <link rel="apple-touch-icon" href="{{ STATIC_URL}}img/touch-icon.png">
     <link rel="apple-touch-icon-precomposed" href="{{ STATIC_URL}}img/touch-icon.png">
 
+<link rel="alternate" type="application/rss+xml"  href="{% url 'rss-feed' %}" title="News rss feed">
+<link rel="alternate" type="application/rss+xml"  href="{% url 'atom-feed' %}" title="News atom feed">
+<link rel="alternate" type="application/rss+xml"  href="{% url 'podcasts-feed' %}" title="Podcast sounds">
+
     <link rel="stylesheet" href="{{ STATIC_URL }}css/reset.css" type="text/css" />
     <link rel="stylesheet" href="{{ STATIC_URL }}font-awesome/css/font-awesome.min.css" type="text/css" />
     <link rel="stylesheet" href="{{ STATIC_URL }}css/type.css" type="text/css" />
index 329121dbccaece1a6a14940cc558d7ef41b59522..e0006da0dbe31edfeec98ea5a019b443f239cdd9 100644 (file)
@@ -2,6 +2,7 @@
 {% load thumbnails %}
 {% load paniktags %}
 {% load staticfiles %}
+{% load i18n %}
 {% block bodyID %}Home{% endblock %}
 {% block title %}Home{% endblock %}
 {% block nav %}
@@ -45,7 +46,7 @@
 
                    <div id="recent-sounds">
                    <h3 class="sectionLabel right"><a href="{% url 'listen' %}">Tous</a></h3>
-                   <h3 class="sectionLabel">Derniers sons</h3>
+                   <h3 class="sectionLabel">Derniers sons&nbsp;<a class="button icon-rss inBlock" title="{% trans 'Podcast sounds' %}" href="{% url 'podcasts-feed' %}"></a></h3>
                    <ul class="custom columns list">
                    {% for soundfile in soundfiles %}
                            <li class="item {% if soundfile.episode.emission.categories.all.count = 0 %}nocat{% endif %} {% for category in soundfile.episode.emission.categories.all %} {{ category|slugify }}{% endfor %}">
index 0c4347f0c239e66f2feddaeae704184351686945..0a0499f6d71ebe60fffd0cc39b63b0ae8df6301b 100644 (file)
@@ -5,7 +5,7 @@
                <div id="audioPlayer" class="cf">
                        <div id="Live" class="padded cf">
                                <div class="metas custom">
-                                       <a class="button icon-download inBlock" title="{% trans 'Get the stream on your player!' %}" href="http://streaming.domainepublic.net:8000/radiopanik.ogg.m3u"></a>
+                                       <a class="button resymbol icon-download inBlock" title="{% trans 'Get the stream on your player!' %}" href="http://streaming.domainepublic.net:8000/radiopanik.ogg.m3u"></a>
                                        <a class="button icon-rss inBlock" title="{% trans 'Podcast sounds' %}" href="{% url 'podcasts-feed' %}"></a>
                                        <button title="{% trans 'Need some help?' %}" onclick="$('#PlayerHelp').toggle();" class="icon-question-sign"></button>
                                </div>
index d8a52f7b5de7fa8966118c2329ae72c559b0f4c8..ba28fd4d550e3218ba4d85377008bfb70447e944 100644 (file)
@@ -1,6 +1,7 @@
 {% extends "base.html"%}
 {% load paniktags %}
 {% block title %}News{% endblock %}
+{% load i18n %}
 {% block nav %}
        {% news_nav %}
 {% endblock %}
@@ -36,6 +37,7 @@
                     </h5>
                                        <h5 class="sectionLabel">
                             <span class="iconLabel">Dernières actus</span>
+                            <a class="button icon-rss inBlock" title="{% trans 'Rss news' %}" href="{% url 'rss-feed' %}"></a>
                     </h5>
                                                <ul class="custom list newsList">
                                                {% for content in news %}