Add course-specific URL overrides for social sharing icons on student dashboard

- sharing enabled for custom URLs only if URL actually specified
This commit is contained in:
Matt Drayer
2015-04-03 10:03:58 -04:00
parent 6b11ff6f22
commit ffe30da7a5
10 changed files with 135 additions and 9 deletions

View File

@@ -69,6 +69,11 @@ class CourseMetadata(object):
if not settings.FEATURES.get('ENABLE_MOBILE_SOCIAL_FACEBOOK_FEATURES'):
filtered_list.append('facebook_url')
# Do not show social sharing url field if the feature is disabled.
if (not settings.FEATURES.get('DASHBOARD_SHARE_SETTINGS') or
not settings.FEATURES.get("DASHBOARD_SHARE_SETTINGS").get("CUSTOM_COURSE_URLS")):
filtered_list.append('social_sharing_url')
return filtered_list
@classmethod