Branding: Horizon needs global footer override

Horizon footer is now configurable at a global level and can live
within a theme.

It was noted that the login page will usually want its own footer.

Change-Id: I61d7876b02cbff2d36b076c201847a39b0454136
Closes-bug: #1531335
This commit is contained in:
Diana Whitten 2016-01-05 16:18:08 -07:00
parent eb2554ad9b
commit b54f73d619
5 changed files with 21 additions and 1 deletions

View File

@ -277,6 +277,14 @@ The logo also acts as a hyperlink. The default behavior is to redirect to
the desired url target e.g., ``http://sample-company.com`` in
``local_settings.py``, the target of the hyperlink can be changed.
Customizing the Footer
======================
It is possible to customize the global and login footers using a theme's
template override. Simply add ``_footer.html`` for a global footer
override or ``_login_footer.html`` for the login page's footer to your
theme's template directory.
Modifying Existing Dashboards and Panels
========================================

View File

@ -8,3 +8,7 @@
{% block content %}
{% include 'auth/_login.html' %}
{% endblock %}
{% block footer %}
{% include '_login_footer.html' %}
{% endblock %}

View File

@ -0,0 +1,3 @@
{% comment %}
A simple placeholder template for custom global footer content
{% endcomment %}

View File

@ -0,0 +1,3 @@
{% comment %}
A simple placeholder template for custom login footer content
{% endcomment %}

View File

@ -47,7 +47,9 @@
</div>
{% endblock %}
<div id="footer">
{% block footer %}{% endblock %}
{% block footer %}
{% include "_footer.html" %}
{% endblock %}
</div>
{% block js %}
{% include "horizon/_scripts.html" %}