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

This commit is contained in:
Diana Huang
2013-05-03 10:17:40 -04:00
parent 1d42df8cb1
commit d35283cf65
5 changed files with 59 additions and 36 deletions

View File

@@ -236,7 +236,14 @@
<div class="cta cta-help">
<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>
</aside>
</section>