Added enable quality waffle flag

This commit is contained in:
asadazam93
2018-11-29 15:16:06 +05:00
parent a86d499592
commit e451324ed3
7 changed files with 218 additions and 174 deletions

View File

@@ -3,6 +3,7 @@
<%def name="online_help_token()"><% return "files" %></%def>
<%!
from cms.djangoapps.contentstore import utils
from cms.djangoapps.contentstore.config.waffle_utils import should_show_checklists_quality
from django.core.urlresolvers import reverse
from django.utils.translation import ugettext as _
from openedx.core.djangolib.markup import HTML, Text
@@ -57,6 +58,7 @@
"help_tokens": {
"files": "${get_online_help_info(online_help_token())['doc_url'] | n, js_escaped_string}"
},
"enable_quality": ${should_show_checklists_quality(context_course.id) | n, dump_js_escaped_json},
"links": {
"certificates": ${certificates_url | n, dump_js_escaped_json},
"course_outline": ${utils.reverse_course_url('course_handler', course_key) | n, dump_js_escaped_json},

View File

@@ -3,6 +3,7 @@
<%def name="online_help_token()"><% return "develop_course" %></%def>
<%!
import logging
from cms.djangoapps.contentstore.config.waffle_utils import should_show_checklists_quality
from util.date_utils import get_default_time_display
from django.utils.translation import ugettext as _
from openedx.core.djangolib.js_utils import js_escaped_string, dump_js_escaped_json
@@ -182,6 +183,7 @@ from django.core.urlresolvers import reverse
"help_tokens": {
"files": "${get_online_help_info(online_help_token())['doc_url'] | n, js_escaped_string}"
},
"enable_quality": ${should_show_checklists_quality(context_course.id) | n, dump_js_escaped_json},
"links": {
"settings": ${reverse('settings_handler', kwargs={'course_key_string': unicode(course_key)})| n, dump_js_escaped_json}
}