Commit 44c1fc9a authored by Simon Daron's avatar Simon Daron
Browse files

Add rss, atom & podcast feeds

parent 10bd58be
......@@ -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" />
......
......@@ -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 %}">
......
......@@ -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>
......
{% 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 %}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment