Set copyright year dynamically
This commit is contained in:
committed by
Omar Al-Ithawi
parent
9ecc2938f5
commit
b8ba64cbe1
@@ -49,7 +49,7 @@ import lms.envs.common
|
||||
# Although this module itself may not use these imported variables, other dependent modules may.
|
||||
from lms.envs.common import (
|
||||
USE_TZ, TECH_SUPPORT_EMAIL, PLATFORM_NAME, BUGS_EMAIL, DOC_STORE_CONFIG, DATA_DIR, ALL_LANGUAGES, WIKI_ENABLED,
|
||||
update_module_store_settings, ASSET_IGNORE_REGEX, COPYRIGHT_YEAR,
|
||||
update_module_store_settings, ASSET_IGNORE_REGEX,
|
||||
PARENTAL_CONSENT_AGE_LIMIT, COMPREHENSIVE_THEME_DIRS, REGISTRATION_EMAIL_PATTERNS_ALLOWED,
|
||||
# The following PROFILE_IMAGE_* settings are included as they are
|
||||
# indirectly accessed through the email opt-in API, which is
|
||||
|
||||
@@ -1,6 +1,9 @@
|
||||
<%!
|
||||
from django.utils.translation import ugettext as _
|
||||
from django.core.urlresolvers import reverse
|
||||
from datetime import datetime
|
||||
from django.conf import settings
|
||||
import pytz
|
||||
%>
|
||||
|
||||
<div class="wrapper-footer wrapper">
|
||||
@@ -8,7 +11,7 @@ from django.core.urlresolvers import reverse
|
||||
|
||||
<div class="footer-content-primary">
|
||||
<div class="colophon">
|
||||
<p>© ${settings.COPYRIGHT_YEAR} <a data-rel="edx.org" href="${marketing_link('ROOT')}" rel="external">${settings.PLATFORM_NAME}</a>.</p>
|
||||
<p>© ${datetime.now(pytz.timezone(settings.TIME_ZONE)).year} <a data-rel="edx.org" href="${marketing_link('ROOT')}" rel="external">${settings.PLATFORM_NAME}</a>.</p>
|
||||
</div>
|
||||
|
||||
% if is_any_marketing_link_set(['TOS', 'PRIVACY']):
|
||||
|
||||
Reference in New Issue
Block a user