Oleg Komarov
709685e2c0
This PR adds a subscribe/unsubscribe button to the extension's approval page. The button state is calculated as `actstream.actions.is_following(user, extension, flag=Flag.REVIEWER)` Approval activity notifications are also generated for followers with `Flag.AUTHOR` and `Flag.MODERATOR`. To avoid confusion the button is hidden from extension maintainers: it won't suppress any related notifications. Moderators will see the button, and it will suppress comment notifications for moderators that interacted with this extension's approval thread, but it will still allow notifications about review requests. Co-authored-by: Márton Lente <marton@blender.org> Reviewed-on: #207 Reviewed-by: Anna Sirota <annasirota@noreply.localhost>
24 lines
626 B
Python
24 lines
626 B
Python
from django.urls import path
|
|
|
|
from reviewers import views
|
|
|
|
app_name = 'reviewers'
|
|
urlpatterns = [
|
|
path('approval-queue/', views.ApprovalQueueView.as_view(), name='approval-queue'),
|
|
path(
|
|
'approval-queue/<slug:slug>/',
|
|
views.ExtensionsApprovalDetailView.as_view(),
|
|
name='approval-detail',
|
|
),
|
|
path(
|
|
'approval-queue/<slug:slug>/comment',
|
|
views.ExtensionsApprovalFormView.as_view(),
|
|
name='approval-comment',
|
|
),
|
|
path(
|
|
'approval-queue-follow/<slug:slug>/',
|
|
views.ExtensionsApprovalFollowView.as_view(),
|
|
name='approval-follow',
|
|
),
|
|
]
|