Commit d6741c77 by Sarina Canelake

Clean up default pages for Open edX instances

Remove Jobs, News
Change "Vision" to "About"
parent aa8b895a
...@@ -20,4 +20,4 @@ Feature: LMS.Homepage for web users ...@@ -20,4 +20,4 @@ Feature: LMS.Homepage for web users
| jobs | Jobs | | jobs | Jobs |
| faq | FAQ | | faq | FAQ |
| contact | Contact| | contact | Contact|
| press | News | | news | News |
...@@ -1576,18 +1576,16 @@ INSTALLED_APPS = ( ...@@ -1576,18 +1576,16 @@ INSTALLED_APPS = (
EDXMKTG_COOKIE_NAME = 'edxloggedin' EDXMKTG_COOKIE_NAME = 'edxloggedin'
MKTG_URLS = {} MKTG_URLS = {}
MKTG_URL_LINK_MAP = { MKTG_URL_LINK_MAP = {
'ABOUT': 'about_edx', 'ABOUT': 'about',
'CONTACT': 'contact', 'CONTACT': 'contact',
'FAQ': 'help_edx', 'FAQ': 'help',
'COURSES': 'courses', 'COURSES': 'courses',
'ROOT': 'root', 'ROOT': 'root',
'TOS': 'tos', 'TOS': 'tos',
'HONOR': 'honor', 'HONOR': 'honor',
'PRIVACY': 'privacy_edx', 'PRIVACY': 'privacy',
'JOBS': 'jobs',
'NEWS': 'news',
'PRESS': 'press', 'PRESS': 'press',
'BLOG': 'edx-blog', 'BLOG': 'blog',
'DONATE': 'donate', 'DONATE': 'donate',
# Verified Certificates # Verified Certificates
......
...@@ -281,6 +281,28 @@ CELERY_ALWAYS_EAGER = True ...@@ -281,6 +281,28 @@ CELERY_ALWAYS_EAGER = True
CELERY_RESULT_BACKEND = 'cache' CELERY_RESULT_BACKEND = 'cache'
BROKER_TRANSPORT = 'memory' BROKER_TRANSPORT = 'memory'
######################### MARKETING SITE ###############################
MKTG_URL_LINK_MAP = {
'ABOUT': 'about',
'CONTACT': 'contact',
'FAQ': 'help',
'COURSES': 'courses',
'ROOT': 'root',
'TOS': 'tos',
'HONOR': 'honor',
'PRIVACY': 'privacy',
'JOBS': 'jobs',
'NEWS': 'news',
'PRESS': 'press',
'BLOG': 'blog',
'DONATE': 'donate',
# Verified Certificates
'WHAT_IS_VERIFIED_CERT': 'verified-certificate',
}
############################ STATIC FILES ############################# ############################ STATIC FILES #############################
DEFAULT_FILE_STORAGE = 'django.core.files.storage.FileSystemStorage' DEFAULT_FILE_STORAGE = 'django.core.files.storage.FileSystemStorage'
MEDIA_ROOT = TEST_ROOT / "uploads" MEDIA_ROOT = TEST_ROOT / "uploads"
......
...@@ -118,15 +118,12 @@ ...@@ -118,15 +118,12 @@
display: inline-block; display: inline-block;
font-size: em(11); font-size: em(11);
a {
display: block;
}
} }
.nav-legal-01 a { .nav-legal-02 a {
&:after { &:before {
margin-left: ($baseline/4); margin-right: ($baseline/4);
content: "-"; content: "-";
} }
} }
......
...@@ -14,16 +14,20 @@ ...@@ -14,16 +14,20 @@
${_("About")} ${_("About")}
</a> </a>
</li> </li>
<li class="nav-colophon-02"> %if marketing_link('JOBS') and marketing_link('JOBS') != '#':
<a id="jobs" href="${marketing_link('JOBS')}"> <li class="nav-colophon-02">
${_("Jobs")} <a id="jobs" href="${marketing_link('JOBS')}">
</a> ${_("Jobs")}
</li> </a>
<li class="nav-colophon-03"> </li>
<a id="press" href="${marketing_link('NEWS')}"> %endif
${_("News")} %if marketing_link('NEWS') and marketing_link('NEWS') != '#':
</a> <li class="nav-colophon-03">
</li> <a id="news" href="${marketing_link('NEWS')}">
${_("News")}
</a>
</li>
%endif
<li class="nav-colophon-04"> <li class="nav-colophon-04">
<a id="faq" href="${marketing_link('FAQ')}"> <a id="faq" href="${marketing_link('FAQ')}">
${_("FAQ")} ${_("FAQ")}
...@@ -49,15 +53,33 @@ ...@@ -49,15 +53,33 @@
## Translators: '&copy;' is an HTML character code for the copyright symbol. Please don't remove or change it. ## Translators: '&copy;' is an HTML character code for the copyright symbol. Please don't remove or change it.
<p class="copyright">${_("&copy; {copyright_year} {platform_name}, some rights reserved").format( <p class="copyright">${_("&copy; {copyright_year} {platform_name}, some rights reserved").format(
platform_name=settings.PLATFORM_NAME, platform_name=settings.PLATFORM_NAME,
copyright_year=settings.COPYRIGHT_YEAR copyright_year=settings.COPYRIGHT_YEAR
)} )}
</p> </p>
<nav class="nav-legal"> <nav class="nav-legal">
<ul> <ul>
%if marketing_link('HONOR') and marketing_link('HONOR') != '#':
<li class="nav-legal-01">
<%
tos_link = u"<a href='{}'>".format(marketing_link('TOS'))
honor_link = u"<a href='{}'>".format(marketing_link('HONOR'))
%>
${
_("{tos_link_start}Terms of Service{tos_link_end} and {honor_link_start}Honor Code{honor_link_end}").format(
tos_link_start=tos_link,
tos_link_end="</a>",
honor_link_start=honor_link,
honor_link_end="</a>",
)
}
</a>
</li>
%else:
<li class="nav-legal-01"> <li class="nav-legal-01">
<a href="${marketing_link('TOS')}">${_("Terms of Service and Honor Code")}</a> <a href="${marketing_link('TOS')}">${_("Terms of Service")}</a>
</li> </li>
%endif
<li class="nav-legal-02"> <li class="nav-legal-02">
<a href="${marketing_link('PRIVACY')}">${_("Privacy Policy")}</a> <a href="${marketing_link('PRIVACY')}">${_("Privacy Policy")}</a>
</li> </li>
......
<%! from django.utils.translation import ugettext as _ %> <%! from django.utils.translation import ugettext as _ %>
<%inherit file="../main.html" /> <%inherit file="../main.html" />
<%block name="pagetitle">${_("Vision")}</%block> <%block name="pagetitle">${_("About")}</%block>
<section class="container about"> <section class="container about">
<h1>${_("Vision")}</h1> <h1>${_("About")}</h1>
<p>${_("This page left intentionally blank. It is not used by edx.org but is left here for possible use by installations of Open edX.")}</p> <p>${_("This page left intentionally blank. It is not used by edx.org but is left here for possible use by installations of Open edX.")}</p>
</section> </section>
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment