From 00d9a854efeffcb74c597c333b6b1147d73fe011 Mon Sep 17 00:00:00 2001 From: winkidney Date: Thu, 21 Feb 2019 19:05:39 +0800 Subject: [PATCH] Feature: Use more restful url for user-filter and tag-filter --- core/urls.py | 4 ++-- pinry/templates/includes/pins.html | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/core/urls.py b/core/urls.py index d3f7ea4..002d353 100644 --- a/core/urls.py +++ b/core/urls.py @@ -17,9 +17,9 @@ urlpatterns = [ url(r'^pins/pin-form/$', TemplateView.as_view(template_name='core/pin_form.html'), name='pin-form'), - url(r'^pins/tag/(?P(\w|-)+)/$', TemplateView.as_view(template_name='core/pins.html'), + url(r'^pins/tags/(?P(\w|-)+)/$', TemplateView.as_view(template_name='core/pins.html'), name='tag-pins'), - url(r'^pins/user/(?P(\w|-)+)/$', TemplateView.as_view(template_name='core/pins.html'), + url(r'^pins/users/(?P(\w|-)+)/$', TemplateView.as_view(template_name='core/pins.html'), name='user-pins'), url(r'^(?P[0-9]+)/$', TemplateView.as_view(template_name='core/pins.html'), name='recent-pins'), diff --git a/pinry/templates/includes/pins.html b/pinry/templates/includes/pins.html index 861e560..e9d03b0 100644 --- a/pinry/templates/includes/pins.html +++ b/pinry/templates/includes/pins.html @@ -26,11 +26,11 @@
pinned by - {{submitter.username}} + {{submitter.username}} {{#if tags}} in {{#each tags}} - {{this}} + {{this}} {{/each}} {{/if}}