Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
E
edx-platform-release
Manage
Activity
Members
Labels
Plan
Issues
0
Issue boards
Milestones
Wiki
Code
Merge requests
1
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Package Registry
Model registry
Operate
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Hsin-Yu Chien
edx-platform-release
Commits
fa981e84
Commit
fa981e84
authored
7 years ago
by
Douglas Hall
Committed by
GitHub
7 years ago
Browse files
Options
Downloads
Plain Diff
Merge pull request #15186 from edx/douglashall/WL-1052
Allow for SiteConfiguration override of SOCIAL_SHARING_SETTINGS setting.
parents
6129494a
8f95f799
Loading
Loading
Loading
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
lms/templates/dashboard.html
+7
-1
7 additions, 1 deletion
lms/templates/dashboard.html
with
7 additions
and
1 deletion
lms/templates/dashboard.html
+
7
−
1
View file @
fa981e84
...
...
@@ -8,6 +8,7 @@ from django.utils.translation import ugettext as _
from
django.template
import
RequestContext
import
third_party_auth
from
third_party_auth
import
pipeline
from
openedx.core.djangoapps.site_configuration
import
helpers
as
configuration_helpers
from
openedx.core.djangolib.js_utils
import
dump_js_escaped_json
,
js_escaped_string
from
openedx.core.djangolib.markup
import
HTML
,
Text
%
>
...
...
@@ -102,7 +103,12 @@ from openedx.core.djangolib.markup import HTML, Text
% if len(course_enrollments) > 0:
<ul
class=
"listing-courses"
>
<
%
share_settings =
getattr(settings,
'
SOCIAL_SHARING_SETTINGS
',
{})
%
>
<
%
share_settings =
configuration_helpers.get_value(
'
SOCIAL_SHARING_SETTINGS
',
getattr
(
settings
,
'
SOCIAL_SHARING_SETTINGS
',
{})
)
%
>
% for dashboard_index, enrollment in enumerate(course_enrollments):
<
%
show_courseware_link =
(enrollment.course_id
in
show_courseware_links_for
)
%
>
<
%
cert_status =
cert_statuses.get(enrollment.course_id)
%
>
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment