]> git.0d.be Git - chloro.git/blobdiff - chloro/phyll/urls.py
views: add page to list notes by tag
[chloro.git] / chloro / phyll / urls.py
index 99d6da61075f29a8dd7c054de1a924340f486ac9..13c70bae5c5626764be016c64e7657650a311a97 100644 (file)
@@ -39,6 +39,8 @@ urlpatterns = [
         staff_member_required(views.NoteDeleteView.as_view(), login_url='login'),
     ),
     url(r'^new-note/$', staff_member_required(views.NoteAddView.as_view(), login_url='login')),
+    url(r'^tag/(?P<tag>[\w:-]+)/$', views.ListOnTagView.as_view()),
+    url(r'^(?P<year>\d{4})/(?P<month>\d{2})/(?P<day>\d{2})/(?P<slug>[\w:-]+)/$', views.NoteView.as_view()),
     url(r'^(?P<slug>[\w:-]+)/$', views.NoteView.as_view()),
     url(r'^$', views.HomeView.as_view()),
 ]