diff --git a/hc/front/templatetags/hc_extras.py b/hc/front/templatetags/hc_extras.py index e5fcc99e..19c9a652 100644 --- a/hc/front/templatetags/hc_extras.py +++ b/hc/front/templatetags/hc_extras.py @@ -39,3 +39,11 @@ def hc_duration(td): @register.simple_tag def settings_value(name): return getattr(settings, name, "") + + +def site_name(name): + return settings.SITE_NAME + + +def site_root(name): + return settings.SITE_ROOT diff --git a/templates/accounts/check_token_submit.html b/templates/accounts/check_token_submit.html index 009a13b7..fc8ae5ef 100644 --- a/templates/accounts/check_token_submit.html +++ b/templates/accounts/check_token_submit.html @@ -3,7 +3,7 @@ - Continue to {% settings_value "SITE_NAME" %} + Continue to {% site_name %} @@ -42,7 +42,7 @@ diff --git a/templates/accounts/profile.html b/templates/accounts/profile.html index 84edfa04..31f2694d 100644 --- a/templates/accounts/profile.html +++ b/templates/accounts/profile.html @@ -1,7 +1,7 @@ {% extends "base.html" %} {% load compress staticfiles hc_extras %} -{% block title %}Account Settings - {% settings_value "SITE_NAME" %}{% endblock %} +{% block title %}Account Settings - {% site_name %}{% endblock %} {% block content %} @@ -47,7 +47,7 @@
{% csrf_token %}

Set Password

- Attach a password to your {% settings_value "SITE_NAME" %} account + Attach a password to your {% site_name %} account