Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
E
edx-platform
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
edx
edx-platform
Commits
adb6a5ac
Commit
adb6a5ac
authored
Sep 26, 2017
by
Daniel Clemente Laboreo
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Use correct protocol in shared links (https/http)
parent
7f7643b7
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
2 deletions
+5
-2
lms/templates/courseware/course_about_sidebar_header.html
+5
-2
No files found.
lms/templates/courseware/course_about_sidebar_header.html
View file @
adb6a5ac
...
...
@@ -16,6 +16,7 @@ from django.conf import settings
## want here (and on this whole page, really).
<
%
site_domain =
static.get_value('site_domain',
settings
.
SITE_NAME
)
site_protocol =
'https'
if
settings
.
HTTPS =
=
'
on
'
else
'
http
'
platform_name =
static.get_platform_name()
##
Translators:
This
text
will
be
automatically
posted
to
the
student
'
s
...
...
@@ -24,7 +25,8 @@ from django.conf import settings
number=
course.number,
title=
course.display_name_with_default_escaped,
account=
static.get_value('course_about_twitter_account',
settings
.
PLATFORM_TWITTER_ACCOUNT
),
url=
u"http://{domain}{path}".format(
url=
u"{protocol}://{domain}{path}".format(
protocol=
site_protocol,
domain=
site_domain,
path=
urllib.quote_plus(
reverse
('
about_course
',
args=
[course.id.to_deprecated_string()])
...
...
@@ -41,7 +43,8 @@ from django.conf import settings
number=
course.number,
title=
course.display_name_with_default_escaped,
platform=
platform_name,
url=
u"http://{domain}{path}".format(
url=
u"{protocol}://{domain}{path}".format(
protocol=
site_protocol,
domain=
site_domain,
path=
urllib.quote_plus(
reverse
('
about_course
',
args=
[course.id.to_deprecated_string()]),
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment