Files @ 2465f2645e2e
Branch filter:

Location: symposion_app/vendor/symposion/proposals/urls.py

James Polley
urlize abstracts

I've looked through the database and I can't find any accepted
proposals that actually contain anything to linkify - but I've had
several requests from people that I think are reasonable, things like
being able to link to their project (we ask them to provide a project
url but we don't use that link)

This seems like a reasonably fast way to let those people add a
link. We still have to manually accept changes to their proposal so we
have a chance to look at the content of the url if we want.

The urlize filter adds rel=nofollow to the link automatically.
from django.conf.urls import url

from .views import (
    proposal_submit,
    proposal_submit_kind,
    proposal_detail,
    proposal_edit,
    proposal_speaker_manage,
    proposal_cancel,
    proposal_leave,
    proposal_pending_join,
    proposal_pending_decline,
    document_create,
    document_delete,
    document_download,
)

urlpatterns = [
    url(r"^submit/$", proposal_submit, name="proposal_submit"),
    url(r"^submit/([\w\-]+)/$", proposal_submit_kind, name="proposal_submit_kind"),
    url(r"^(\d+)/$", proposal_detail, name="proposal_detail"),
    url(r"^(\d+)/edit/$", proposal_edit, name="proposal_edit"),
    url(r"^(\d+)/speakers/$", proposal_speaker_manage, name="proposal_speaker_manage"),
    url(r"^(\d+)/cancel/$", proposal_cancel, name="proposal_cancel"),
    url(r"^(\d+)/leave/$", proposal_leave, name="proposal_leave"),
    url(r"^(\d+)/join/$", proposal_pending_join, name="proposal_pending_join"),
    url(r"^(\d+)/decline/$", proposal_pending_decline, name="proposal_pending_decline"),

    url(r"^(\d+)/document/create/$", document_create, name="proposal_document_create"),
    url(r"^document/(\d+)/delete/$", document_delete, name="proposal_document_delete"),
    url(r"^document/(\d+)/([^/]+)$", document_download, name="proposal_document_download"),
]