- Add announcements view using JSX to the dashboard sidebar - Create a new maintenance interface to edit and manage announcements - Adds an override to main.html template to include new skip links - Add plugins required for announcements to TinyMCE This is motivated by a desire to have system wide messages for students that show on the dashboard. Enabled with FEATURES['ENABLE_ANNOUNCEMENTS']. Global staff are allowed to edit from the studio maintenance view.
19 lines
852 B
Python
19 lines
852 B
Python
"""
|
|
URLs for the maintenance app.
|
|
"""
|
|
from django.conf.urls import url
|
|
|
|
from .views import (
|
|
ForcePublishCourseView, MaintenanceIndexView,
|
|
AnnouncementIndexView, AnnouncementEditView, AnnouncementCreateView, AnnouncementDeleteView
|
|
)
|
|
|
|
urlpatterns = [
|
|
url(r'^$', MaintenanceIndexView.as_view(), name='maintenance_index'),
|
|
url(r'^force_publish_course/?$', ForcePublishCourseView.as_view(), name='force_publish_course'),
|
|
url(r'^announcements/(?P<page>\d+)?$', AnnouncementIndexView.as_view(), name='announcement_index'),
|
|
url(r'^announcements/create$', AnnouncementCreateView.as_view(), name='announcement_create'),
|
|
url(r'^announcements/edit/(?P<pk>\d+)?$', AnnouncementEditView.as_view(), name='announcement_edit'),
|
|
url(r'^announcements/delete/(?P<pk>\d+)$', AnnouncementDeleteView.as_view(), name='announcement_delete'),
|
|
]
|