Use REDIRECT_TO_CMS and MULTISITE_CMS_FALLBACK to construct

/hosting footer urls
This commit is contained in:
PCoder 2018-04-07 10:25:21 +02:00
parent 56f6c87fab
commit ffe4eb4123
1 changed files with 3 additions and 3 deletions

View File

@ -4,15 +4,15 @@
<div class="container">
<ul class="list-inline">
<li>
<a class="url-init" href="{% url 'datacenterlight:index' %}">{% trans "Home" %}</a>
<a class="url-init" href="{% if REDIRECT_TO_CMS %}{% url pages-root %}{% else %}https://{{MULTISITE_CMS_FALLBACK}}{% endif %}">{% trans "Home" %}</a>
</li>
<li class="footer-menu-divider">&sdot;</li>
<li>
<a class="url-init" href="{% url 'datacenterlight:index' %}#contact">{% trans "Contact" %}</a>
<a class="url-init" href="{% if REDIRECT_TO_CMS %}{% url pages-root %}{% else %}https://{{MULTISITE_CMS_FALLBACK}}{% endif %}#contact">{% trans "Contact" %}</a>
</li>
<li class="footer-menu-divider">&sdot;</li>
<li>
<a class="url-init" href="/cms/terms-of-service">{% trans "Terms of Service" %}</a>
<a class="url-init" href="https://{{MULTISITE_CMS_FALLBACK}}/cms/terms-of-service">{% trans "Terms of Service" %}</a>
</li>
</ul>