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
e0fe8bcd
Commit
e0fe8bcd
authored
Nov 23, 2013
by
Will Daly
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Removed extra trailing slash from STATIC_URL in devstack
Let staticfiles determine the footer URLs
parent
3853c926
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
12 additions
and
7 deletions
+12
-7
cms/envs/aws.py
+4
-1
lms/envs/aws.py
+3
-1
lms/templates/footer.html
+5
-5
No files found.
cms/envs/aws.py
View file @
e0fe8bcd
...
...
@@ -90,7 +90,10 @@ with open(CONFIG_ROOT / CONFIG_PREFIX + "env.json") as env_file:
STATIC_URL_BASE
=
ENV_TOKENS
.
get
(
'STATIC_URL_BASE'
,
None
)
if
STATIC_URL_BASE
:
# collectstatic will fail if STATIC_URL is a unicode string
STATIC_URL
=
STATIC_URL_BASE
.
encode
(
'ascii'
)
+
"/"
+
git
.
revision
+
"/"
STATIC_URL
=
STATIC_URL_BASE
.
encode
(
'ascii'
)
if
not
STATIC_URL
.
endswith
(
"/"
):
STATIC_URL
+=
"/"
STATIC_URL
+=
git
.
revision
+
"/"
# GITHUB_REPO_ROOT is the base directory
# for course data
...
...
lms/envs/aws.py
View file @
e0fe8bcd
...
...
@@ -124,7 +124,9 @@ if STATIC_ROOT_BASE:
STATIC_URL_BASE
=
ENV_TOKENS
.
get
(
'STATIC_URL_BASE'
,
None
)
if
STATIC_URL_BASE
:
# collectstatic will fail if STATIC_URL is a unicode string
STATIC_URL
=
STATIC_URL_BASE
.
encode
(
'ascii'
)
+
"/"
STATIC_URL
=
STATIC_URL_BASE
.
encode
(
'ascii'
)
if
not
STATIC_URL
.
endswith
(
"/"
):
STATIC_URL
+=
"/"
PLATFORM_NAME
=
ENV_TOKENS
.
get
(
'PLATFORM_NAME'
,
PLATFORM_NAME
)
# For displaying on the receipt. At Stanford PLATFORM_NAME != MERCHANT_NAME, but PLATFORM_NAME is a fine default
...
...
lms/templates/footer.html
View file @
e0fe8bcd
...
...
@@ -48,27 +48,27 @@
<ul>
<li
class=
"nav-social-01"
>
<a
href=
"http://www.meetup.com/edX-Global-Community/"
rel=
"external"
>
<img
src=
"${
EDX_ROOT_URL}/static/images/social/ico-social-meetup.png
"
alt=
"edX on Meetup"
/>
<img
src=
"${
static.url('images/social/ico-social-meetup.png')}
"
alt=
"edX on Meetup"
/>
</a>
</li>
<li
class=
"nav-social-02"
>
<a
href=
"http://www.facebook.com/EdxOnline"
rel=
"external"
>
<img
src=
"${
EDX_ROOT_URL}/static/images/social/ico-social-facebook.png
"
alt=
"edX on Facebook"
/>
<img
src=
"${
static.url('images/social/ico-social-facebook.png')}
"
alt=
"edX on Facebook"
/>
</a>
</li>
<li
class=
"nav-social-03"
>
<a
href=
"https://twitter.com/edXOnline"
rel=
"external"
>
<img
src=
"${
EDX_ROOT_URL}/static/images/social/ico-social-twitter.png
"
alt=
"edX on Twitter"
/>
<img
src=
"${
static.url('images/social/ico-social-twitter.png')}
"
alt=
"edX on Twitter"
/>
</a>
</li>
<li
class=
"nav-social-04"
>
<a
href=
"https://plus.google.com/108235383044095082735/posts"
rel=
"external"
>
<img
src=
"${
EDX_ROOT_URL}/static/images/social/ico-social-google.png
"
alt=
"edX on Google+"
/>
<img
src=
"${
static.url('images/social/ico-social-google.png')}
"
alt=
"edX on Google+"
/>
</a>
</li>
<li
class=
"nav-social-05"
>
<a
href=
"http://youtube.com/user/edxonline"
rel=
"external"
>
<img
src=
"${
EDX_ROOT_URL}/static/images/social/ico-social-youtube.png
"
alt=
"edX on YouTube"
/>
<img
src=
"${
static.url('images/social/ico-social-youtube.png')}
"
alt=
"edX on YouTube"
/>
</a>
</li>
</ul>
...
...
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