@@ -7,7 +7,7 @@ urlpatterns = [ | |||||
name='pin-form'), | name='pin-form'), | ||||
url(r'^pins/tags/(?P<tag>(\w|-)+)/$', TemplateView.as_view(template_name='core/pins.html'), | url(r'^pins/tags/(?P<tag>(\w|-)+)/$', TemplateView.as_view(template_name='core/pins.html'), | ||||
name='tag-pins'), | name='tag-pins'), | ||||
url(r'^pins/users/(?P<user>(\w|-)+)/$', TemplateView.as_view(template_name='core/pins.html'), | |||||
url(r'^pins/users/(?P<username>(\w|-)+)/$', TemplateView.as_view(template_name='core/pins.html'), | |||||
name='user-pins'), | name='user-pins'), | ||||
url(r'^(?P<pin>[0-9]+)/$', TemplateView.as_view(template_name='core/pins.html'), | url(r'^(?P<pin>[0-9]+)/$', TemplateView.as_view(template_name='core/pins.html'), | ||||
name='pin-detail'), | name='pin-detail'), | ||||
@@ -15,7 +15,6 @@ $(window).load(function() { | |||||
// Start Helper Functions | // Start Helper Functions | ||||
function getFormData() { | function getFormData() { | ||||
return { | return { | ||||
submitter: currentUser, | |||||
url: $('#pin-form-image-url').val(), | url: $('#pin-form-image-url').val(), | ||||
referer: $('#pin-form-referer').val(), | referer: $('#pin-form-referer').val(), | ||||
description: $('#pin-form-description').val(), | description: $('#pin-form-description').val(), | ||||
@@ -25,7 +24,6 @@ $(window).load(function() { | |||||
function createPinPreviewFromForm() { | function createPinPreviewFromForm() { | ||||
var context = {pins: [{ | var context = {pins: [{ | ||||
submitter: currentUser, | |||||
image: {thumbnail: {image: $('#pin-form-image-url').val()}}, | image: {thumbnail: {image: $('#pin-form-image-url').val()}}, | ||||
referer: $('#pin-form-referer').val(), | referer: $('#pin-form-referer').val(), | ||||
description: $('#pin-form-description').val(), | description: $('#pin-form-description').val(), | ||||
@@ -36,7 +36,7 @@ | |||||
}, | }, | ||||
pinFilter = "{{ request.resolver_match.kwargs.pin }}", | pinFilter = "{{ request.resolver_match.kwargs.pin }}", | ||||
tagFilter = "{{ request.resolver_match.kwargs.tag }}", | tagFilter = "{{ request.resolver_match.kwargs.tag }}", | ||||
userFilter = "{{ request.resolver_match.kwargs.user }}"; | |||||
userFilter = "{{ request.resolver_match.kwargs.username }}"; | |||||
</script> | </script> | ||||
<!-- End JavaScript Variables --> | <!-- End JavaScript Variables --> | ||||
</head> | </head> | ||||