From d35283cf657157131b8a42dc524db800bd3cb39f Mon Sep 17 00:00:00 2001 From: Diana Huang Date: Fri, 3 May 2013 10:17:40 -0400 Subject: [PATCH] Reduce the amount of repeated HTML and add checks for the correct settings. --- lms/templates/dashboard.html | 6 ++-- lms/templates/footer.html | 63 ++++++++++++++++++----------------- lms/templates/login.html | 10 +++++- lms/templates/navigation.html | 7 ++-- lms/templates/register.html | 9 ++++- 5 files changed, 59 insertions(+), 36 deletions(-) diff --git a/lms/templates/dashboard.html b/lms/templates/dashboard.html index 25a437395c..54023cc77c 100644 --- a/lms/templates/dashboard.html +++ b/lms/templates/dashboard.html @@ -327,10 +327,12 @@

Looks like you haven't registered for any courses yet.

% if settings.MITX_FEATURES.get('ENABLE_MKTG_SITE'): - Find courses now! + %else: - Find courses now! + %endif + Find courses now! +
% endif diff --git a/lms/templates/footer.html b/lms/templates/footer.html index b7351a9c15..11f6ab9d40 100644 --- a/lms/templates/footer.html +++ b/lms/templates/footer.html @@ -6,48 +6,51 @@