Commit 25ab25d3 authored by fred's avatar fred

add quick links page

parent e9ca58ae
{% extends "base.html" %}
{% load i18n %}
{% block appbar %}
<h2>Nonstop</h2>
{% endblock %}
{% block content %}
<ul>
<li><a href="{% url 'nonstop-today' %}">Aujourd'hui</a> (avec des liens pour naviguer vers les autres jours)</li>
<li><a href="{% url 'artist-list' %}">Artistes</a> présents (un jour ou l'autre) dans le nonstop</li>
<li><a href="{% url 'nonstop-upload-tracks' %}">Ajout de nouveaux morceaux</a></li>
<li><a href="{% url 'nonstop-recent-tracks' %}">Édition rapide de métadonnées de nouveaux morceaux</a> (langue, Instru, SABAM, CFWB)</li>
</ul>
{% endblock %}
from django.conf.urls import url
from .views import SomaDayArchiveView, SomaDayArchiveCsvView, RedirectTodayView, TrackDetailView, ArtistDetailView, ArtistListView, StatisticsView, UploadTracksView, RecentTracksView
from .views import SomaDayArchiveView, SomaDayArchiveCsvView, RedirectTodayView, TrackDetailView, ArtistDetailView, ArtistListView, StatisticsView, UploadTracksView, RecentTracksView, QuickLinksView
urlpatterns = [
# Example: /2012/nov/10/
......@@ -18,4 +18,5 @@ urlpatterns = [
url(r'^upload/$', UploadTracksView.as_view(), name='nonstop-upload-tracks'),
url(r'^recent/$', RecentTracksView.as_view(), name='nonstop-recent-tracks'),
url(r'^quick-links/$', QuickLinksView.as_view(), name='nonstop-quick-links'),
]
......@@ -233,3 +233,7 @@ class RecentTracksView(ListView):
track.cfwb = 'cfwb-%s' % track_id in request.POST
track.save()
return HttpResponseRedirect('.')
class QuickLinksView(TemplateView):
template_name = 'nonstop/quick_links.html'
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