Commit d35283cf by Diana Huang

Reduce the amount of repeated HTML and add checks for the correct settings.

parent 1d42df8c
...@@ -327,10 +327,12 @@ ...@@ -327,10 +327,12 @@
<section class="empty-dashboard-message"> <section class="empty-dashboard-message">
<p>Looks like you haven't registered for any courses yet.</p> <p>Looks like you haven't registered for any courses yet.</p>
% if settings.MITX_FEATURES.get('ENABLE_MKTG_SITE'): % if settings.MITX_FEATURES.get('ENABLE_MKTG_SITE'):
<a href="${settings.MKTG_URLS.get('ROOT')}${settings.MKTG_URLS.get('COURSES')}">Find courses now!</a> <a href="${settings.MKTG_URLS.get('ROOT')}${settings.MKTG_URLS.get('COURSES')}">
%else: %else:
<a href="${reverse('courses')}">Find courses now!</a> <a href="${reverse('courses')}">
%endif %endif
Find courses now!
</a>
</section> </section>
% endif % endif
......
...@@ -6,48 +6,51 @@ ...@@ -6,48 +6,51 @@
<footer> <footer>
<div class="colophon"> <div class="colophon">
<nav class="nav-colophon"> <nav class="nav-colophon">
% if settings.MITX_FEATURES.get('ENABLE_MKTG_SITE'):
<ol> <ol>
<li class="nav-colophon-01"> <li class="nav-colophon-01">
<a href="${settings.MKTG_URLS.get('ROOT')}${settings.MKTG_URLS.get('ABOUT')}">About</a> % if settings.MITX_FEATURES.get('ENABLE_MKTG_SITE'):
<a href="${settings.MKTG_URLS.get('ROOT')}${settings.MKTG_URLS.get('ABOUT')}">
%else:
<a href="${reverse('about_edx')}">
%endif
About
</a>
</li> </li>
<li class="nav-colophon-02"> <li class="nav-colophon-02">
<a href="${settings.MKTG_URLS.get('ROOT')}${settings.MKTG_URLS.get('JOBS')}">Jobs</a> % if settings.MITX_FEATURES.get('ENABLE_MKTG_SITE'):
<a href="${settings.MKTG_URLS.get('ROOT')}${settings.MKTG_URLS.get('JOBS')}">
%else:
<a href="${reverse('jobs')}">
%endif
Jobs</a>
</li> </li>
<li class="nav-colophon-03"> <li class="nav-colophon-03">
<a href="${settings.MKTG_URLS.get('ROOT')}${settings.MKTG_URLS.get('PRESS')}">Press</a> % if settings.MITX_FEATURES.get('ENABLE_MKTG_SITE'):
<a href="${settings.MKTG_URLS.get('ROOT')}${settings.MKTG_URLS.get('PRESS')}">
%else:
<a href="${reverse('press')}">
%endif
Press</a>
</li> </li>
<li class="nav-colophon-04"> <li class="nav-colophon-04">
<a href="${settings.MKTG_URLS.get('ROOT')}${settings.MKTG_URLS.get('FAQ')}">FAQ</a> % if settings.MITX_FEATURES.get('ENABLE_MKTG_SITE'):
<a href="${settings.MKTG_URLS.get('ROOT')}${settings.MKTG_URLS.get('FAQ')}">
%else:
<a href="${reverse('help_edx')}">
%endif
FAQ
</a>
</li> </li>
<li class="nav-colophon-05"> <li class="nav-colophon-05">
<a href="${settings.MKTG_URLS.get('ROOT')}${settings.MKTG_URLS.get('CONTACT')}">Contact</a> % if settings.MITX_FEATURES.get('ENABLE_MKTG_SITE'):
<a href="${settings.MKTG_URLS.get('ROOT')}${settings.MKTG_URLS.get('CONTACT')}">
%else:
<a href="${reverse('contact')}">
%endif
Contact
</a>
</li> </li>
</ol> </ol>
%else:
<ol>
<li class="nav-colophon-01">
<a href="${reverse('about_edx')}">About</a>
</li>
<li class="nav-colophon-02">
<a href="${reverse('jobs')}">Jobs</a>
</li>
<li class="nav-colophon-03">
<a href="#">Press</a>
</li>
<li class="nav-colophon-04">
<a href="#">FAQ</a>
</li>
<li class="nav-colophon-05">
<a href="${reverse('contact')}">Contact</a>
</li>
% if user.is_authenticated():
<li class="nav-colophon-06">
<a href="#">Help</a>
</li>
% endif
</ol>
%endif
</nav> </nav>
<div class="colophon-about"> <div class="colophon-about">
......
...@@ -150,7 +150,15 @@ ...@@ -150,7 +150,15 @@
<p><a href="${reverse('register_user')}">Sign up for edX today!</a></p> <p><a href="${reverse('register_user')}">Sign up for edX today!</a></p>
<h3>Need Help?</h3> <h3>Need Help?</h3>
<p>Looking for help in logging in or with your edX account? <a href="${settings.MKTG_URLS.get('ROOT')}${settings.MKTG_URLS.get('FAQ')}">View our help section for answers to commonly asked questions</a></p> <p>Looking for help in logging in or with your edX account?
% if settings.MITX_FEATURES.get('ENABLE_MKTG_SITE'):
<a href="${settings.MKTG_URLS.get('ROOT')}${settings.MKTG_URLS.get('FAQ')}">
%else:
<a href="${reverse('help_edx')}">
%endif
View our help section for answers to commonly asked questions.
</a></p>
</div> </div>
</aside> </aside>
</section> </section>
......
...@@ -73,11 +73,14 @@ site_status_msg = get_site_status_msg(course_id) ...@@ -73,11 +73,14 @@ site_status_msg = get_site_status_msg(course_id)
<li class="primary"> <li class="primary">
<a href="#" class="dropdown">&#9662</a> <a href="#" class="dropdown">&#9662</a>
<ul class="dropdown-menu"> <ul class="dropdown-menu">
<li>
% if settings.MITX_FEATURES.get('ENABLE_MKTG_SITE'): % if settings.MITX_FEATURES.get('ENABLE_MKTG_SITE'):
<li><a href="${settings.MKTG_URLS.get('ROOT')}${settings.MKTG_URLS.get('FAQ')}">Help</a></li> <a href="${settings.MKTG_URLS.get('ROOT')}${settings.MKTG_URLS.get('FAQ')}">
%else: %else:
<li><a href="${reverse('help_edx')}">Help</a></li> <a href="${reverse('help_edx')}">
%endif %endif
Help
</a></li>
<li><a href="${reverse('logout')}">Log Out</a></li> <li><a href="${reverse('logout')}">Log Out</a></li>
</ul> </ul>
</li> </li>
......
...@@ -236,7 +236,14 @@ ...@@ -236,7 +236,14 @@
<div class="cta cta-help"> <div class="cta cta-help">
<h3>Need Help?</h3> <h3>Need Help?</h3>
<p>Need help in registering with edX? <a href="${settings.MKTG_URLS.get('ROOT')}${settings.MKTG_URLS.get('FAQ')}">View our FAQs for answers to commonly asked questions</a>. Once registered, most questions can be answered in the course specific discussion forums or through the FAQs.</p> <p>Need help in registering with edX?
% if settings.MITX_FEATURES.get('ENABLE_MKTG_SITE'):
<a href="${settings.MKTG_URLS.get('ROOT')}${settings.MKTG_URLS.get('FAQ')}">
%else:
<a href="${reverse('help_edx')}">
%endif
View our FAQs for answers to commonly asked questions.
</a>. Once registered, most questions can be answered in the course specific discussion forums or through the FAQs.</p>
</div> </div>
</aside> </aside>
</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