From 7910873456911ce436a67af46af5c3c4ff8ceb32 Mon Sep 17 00:00:00 2001 From: Guillaume Pellerin Date: Thu, 23 Jul 2015 15:54:49 +0200 Subject: [PATCH] update links --- telemeta/templates/telemeta/inc/epub_list.html | 4 ++-- telemeta/templates/telemeta/resource_epub_list.html | 2 +- telemeta/urls.py | 2 +- telemeta/views/resource.py | 3 --- 4 files changed, 4 insertions(+), 7 deletions(-) diff --git a/telemeta/templates/telemeta/inc/epub_list.html b/telemeta/templates/telemeta/inc/epub_list.html index 7beddece..c454bbdf 100644 --- a/telemeta/templates/telemeta/inc/epub_list.html +++ b/telemeta/templates/telemeta/inc/epub_list.html @@ -15,10 +15,10 @@ {% if child.code %} - {{ child.title }} + {{ child.title }} -
+
diff --git a/telemeta/templates/telemeta/resource_epub_list.html b/telemeta/templates/telemeta/resource_epub_list.html index 13bc7ef0..0c1dd16e 100644 --- a/telemeta/templates/telemeta/resource_epub_list.html +++ b/telemeta/templates/telemeta/resource_epub_list.html @@ -13,7 +13,7 @@ {% block infos %}

{% trans "Livre complet" %}

-
+ diff --git a/telemeta/urls.py b/telemeta/urls.py index 583aa9a4..37ab5c8a 100644 --- a/telemeta/urls.py +++ b/telemeta/urls.py @@ -134,7 +134,7 @@ urlpatterns = patterns('', url(r'^archives/(?P[A-Za-z0-9._-]+)/(?P[A-Za-z0-9._-]+)/delete/$', ResourceDeleteView.as_view(), name="telemeta-resource-delete"), url(r'^archives/(?P[A-Za-z0-9._-]+)/(?P[A-Za-z0-9._-]+)/related/(?P[A-Za-z0-9._-]+)/view/$', resource_view.related_stream, name="telemeta-resource-related"), url(r'^archives/(?P[A-Za-z0-9._-]+)/(?P[A-Za-z0-9._-]+)/related/(?P[A-Za-z0-9._-]+)/download/$', resource_view.related_download, name="telemeta-resource-related-download"), - url(r'^archives/(?P[A-Za-z0-9._-]+)/(?P[A-Za-z0-9._-]+)/epub/download/$', ResourceEpubView.as_view(), name="telemeta-resource-epub"), + url(r'^archives/(?P[A-Za-z0-9._-]+)/(?P[A-Za-z0-9._-]+)/epub/download/$', ResourceEpubView.as_view(), name="telemeta-resource-epub-download"), url(r'^archives/(?P[A-Za-z0-9._-]+)/(?P[A-Za-z0-9._-]+)/epub/list/$', ResourceEpubListView.as_view(), name="telemeta-resource-epub-list"), url(r'^archives/(?P[A-Za-z0-9._-]+)/(?P[A-Za-z0-9._-]+)/epub/$', ResourceEpubPasswordView.as_view(), name="telemeta-resource-password-epub"), diff --git a/telemeta/views/resource.py b/telemeta/views/resource.py index b308962e..6a7cabed 100644 --- a/telemeta/views/resource.py +++ b/telemeta/views/resource.py @@ -351,9 +351,6 @@ class ResourceEpubView(ResourceSingleMixin, BaseEpubMixin, View): response['Content-Disposition'] = "attachment; filename=%s" % self.filename + '.epub' return response - def dispatch(self, *args, **kwargs): - return super(ResourceEpubView, self).dispatch(*args, **kwargs) - class ResourceEpubPasswordView(ResourceSingleMixin, FormView): -- 2.39.5