X-Git-Url: https://git.mdrn.pl/wolnelektury.git/blobdiff_plain/357027375ff8867f42ca34bcbfb5a78b5b185fc3..2fea31c78fb2dbbbabda91c64aab0760adba517c:/src/catalogue/urls.py?ds=sidebyside diff --git a/src/catalogue/urls.py b/src/catalogue/urls.py index b7c59a055..0b33ce96c 100644 --- a/src/catalogue/urls.py +++ b/src/catalogue/urls.py @@ -32,7 +32,16 @@ urlpatterns += patterns('', urlpatterns += patterns('catalogue.views', url(r'^$', 'catalogue', name='catalogue'), - url(r'^lektury/$', 'book_list', name='book_list'), + url(r'^autor/$', 'tag_catalogue', {'category': 'author'}, name='author_catalogue'), + url(r'^epoka/$', 'tag_catalogue', {'category': 'epoch'}, name='epoch_catalogue'), + url(r'^gatunek/$', 'tag_catalogue', {'category': 'genre'}, name='genre_catalogue'), + url(r'^rodzaj/$', 'tag_catalogue', {'category': 'kind'}, name='kind_catalogue'), + url(r'^motyw/$', 'tag_catalogue', {'category': 'theme'}, name='theme_catalogue'), + + url(r'^galeria/$', 'tagged_object_list', {'gallery': True}, name='gallery'), + url(r'^kolekcje/$', 'collections', name='catalogue_collections'), + + url(r'^lektury/$', 'tagged_object_list', name='book_list'), url(r'^lektury/(?P[a-zA-Z0-9-]+)/$', 'collection', name='collection'), url(r'^audiobooki/$', 'audiobook_list', name='audiobook_list'), url(r'^daisy/$', 'daisy_list', name='daisy_list'), @@ -68,14 +77,16 @@ urlpatterns += patterns('catalogue.views', 'book_fragments', name='book_fragments'), # Includes. - url(r'^(?P[^/]+)\.json$', 'catalogue_json'), url(r'^b/(?P\d+)/mini\.(?P.+)\.html', 'book_mini', name='catalogue_book_mini'), url(r'^b/(?P\d+)/mini_nolink\.(?P.+)\.html', 'book_mini', {'with_link': False}, name='catalogue_book_mini_nolink'), url(r'^b/(?P\d+)/short\.(?P.+)\.html', 'book_short', name='catalogue_book_short'), url(r'^b/(?P\d+)/wide\.(?P.+)\.html', 'book_wide', name='catalogue_book_wide'), url(r'^f/(?P\d+)/promo\.(?P.+)\.html', 'fragment_promo', name='catalogue_fragment_promo'), url(r'^f/(?P\d+)/short\.(?P.+)\.html', 'fragment_short', name='catalogue_fragment_short'), + url(r'^t/(?P\d+)/box\.(?P.+)\.html', 'tag_box', name='catalogue_tag_box'), + url(r'^c/(?P.+)/box\.(?P.+)\.html', 'collection_box', name='catalogue_collection_box'), # This should be the last pattern. + url(r'^galeria/(?P[a-zA-Z0-9-/]*)/$', 'tagged_object_list', {'gallery': True}, name='tagged_object_list_gallery'), url(r'^(?P[a-zA-Z0-9-/]*)/$', 'tagged_object_list', name='tagged_object_list'), )