Example #1
0
    # beta:
    url(r'^beta/(?P<pk>\d+)/(?P<slug>.+)/(?P<parent_container_slug>.+)/(?P<container_slug>.+)/$',
        DisplayBetaContainer.as_view(public_is_prioritary=False),
        name='beta-view-container'),
    url(r'^beta/(?P<pk>\d+)/(?P<slug>.+)/(?P<container_slug>.+)/$',
        DisplayBetaContainer.as_view(public_is_prioritary=False),
        name='beta-view-container'),

    url(r'^beta/(?P<pk>\d+)/(?P<slug>.+)/$', DisplayBetaContent.as_view(), name='beta-view'),

    # reactions:
    url(r'^reactions/ajouter/$', SendNoteFormView.as_view(redirection_is_needed=False), name='add-reaction'),
    url(r'^reactions/editer/$', UpdateNoteView.as_view(redirection_is_needed=False), name='update-reaction'),
    url(r'^reactions/cacher/(?P<pk>\d+)/$', HideReaction.as_view(), name='hide-reaction'),
    url(r'^reactions/afficher/(?P<pk>\d+)/$', ShowReaction.as_view(), name='show-reaction'),
    url(r'^reactions/alerter/(?P<pk>\d+)/$', SendNoteAlert.as_view(), name='alert-reaction'),
    url(r'^reactions/resoudre/$', SolveNoteAlert.as_view(), name='resolve-reaction'),

    # follow:
    url(r'^suivre/(?P<pk>\d+)/reactions/$', FollowContentReaction.as_view(), name='follow-reactions'),
    url(r'^suivre/membres/(?P<pk>\d+)/$', FollowNewContent.as_view(), name='follow'),

    # content alerts:
    url(r'^alerter/(?P<pk>\d+)/$', SendContentAlert.as_view(), name='alert-content'),
    url(r'^resoudre/(?P<pk>\d+)/$', SolveContentAlert.as_view(), name='resolve-content'),

    # typo:
    url(r'^reactions/typo/$', WarnTypo.as_view(), name='warn-typo'),

    # create:
    url(r'^nouveau-tutoriel/$',
Example #2
0
        SendNoteFormView.as_view(),
        name="add-reaction"),
    url(r'^reactions/editer/$',
        UpdateNoteView.as_view(),
        name="update-reaction"),
    url(r'^reactions/upvote/$', UpvoteReaction.as_view(), name="up-vote"),
    url(r'^reactions/downvote/$', DownvoteReaction.as_view(),
        name="down-vote"),
    url(r'^reactions/cacher/(?P<pk>\d+)/$',
        HideReaction.as_view(),
        name="hide-reaction"),
    url(r'^reactions/afficher/(?P<pk>\d+)/$',
        ShowReaction.as_view(),
        name="show-reaction"),
    url(r'^reactions/alerter/(?P<pk>\d+)/$',
        SendNoteAlert.as_view(),
        name="alert-reaction"),
    url(r'^reactions/resoudre/$',
        SolveNoteAlert.as_view(),
        name="resolve-reaction"),

    # typo:
    url(r'^reactions/typo/$', WarnTypo.as_view(), name="warn-typo"),

    # create:
    url(r'^nouveau-tutoriel/$',
        CreateContent.as_view(created_content_type="TUTORIAL"),
        name='create-tutorial'),
    url(r'^nouvel-article/$',
        CreateContent.as_view(created_content_type="ARTICLE"),
        name='create-article'),