X-Git-Url: https://git.openstreetmap.org./osqa.git/blobdiff_plain/c20ffa09925ec21f3631e6f14f078f2f8b05be70..1dcbddebd4c10dd0d6ef25f01ad095c2bf16148e:/forum/settings/view.py diff --git a/forum/settings/view.py b/forum/settings/view.py index 5ebd228..14b3aad 100644 --- a/forum/settings/view.py +++ b/forum/settings/view.py @@ -4,6 +4,11 @@ from django.utils.translation import ugettext_lazy as _ """ view settings """ VIEW_SET = SettingSet('view', _('View settings'), _("Set up how certain parts of the site are displayed."), 20) +EMBED_YOUTUBE_VIDEOS = Setting('EMBED_YOUTUBE_VIDEOS', True, VIEW_SET, dict( +label = _("Embed YouTube Videos"), +help_text = _("If you check this YouTube videos will be embedded"), +required=False)) + SUMMARY_LENGTH = Setting('SUMMARY_LENGTH', 300, VIEW_SET, dict( label = _("Summary Length"), help_text = _("The number of characters that are going to be displayed in order to get the content summary.")))