- 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.
29 lines
872 B
Python
29 lines
872 B
Python
"""
|
|
Announcements Application Configuration
|
|
"""
|
|
from django.apps import AppConfig
|
|
from openedx.core.djangoapps.plugins.constants import ProjectType, SettingsType, PluginURLs, PluginSettings
|
|
|
|
|
|
class AnnouncementsConfig(AppConfig):
|
|
"""
|
|
Application Configuration for Announcements
|
|
"""
|
|
name = u'openedx.features.announcements'
|
|
|
|
plugin_app = {
|
|
PluginURLs.CONFIG: {
|
|
ProjectType.LMS: {
|
|
PluginURLs.NAMESPACE: u'announcements',
|
|
PluginURLs.REGEX: u'announcements/',
|
|
PluginURLs.RELATIVE_PATH: u'urls',
|
|
}
|
|
},
|
|
PluginSettings.CONFIG: {
|
|
ProjectType.LMS: {
|
|
SettingsType.COMMON: {PluginSettings.RELATIVE_PATH: u'settings.common'},
|
|
SettingsType.TEST: {PluginSettings.RELATIVE_PATH: u'settings.test'},
|
|
}
|
|
}
|
|
}
|