Skip to content

Commit

Permalink
Add footer blocks (copyright notice and credits) (#123)
Browse files Browse the repository at this point in the history
Allows plugins to customise some elements of the footer.


* Add footer blocks (copyright notice and credits)

* Changelog entry

Co-authored-by: F.N. Claessen <felix@seita.nl>
  • Loading branch information
Flix6x and Flix6x committed May 6, 2021
1 parent 52a8f41 commit 760ea2a
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
1 change: 1 addition & 0 deletions documentation/changelog.rst
Expand Up @@ -9,6 +9,7 @@ v0.5.0 | May XX, 2021
New features
-----------
* Allow plugins to overwrite UI routes and customise the teaser on the login form [see `PR #106 <http://www.github.com/SeitaBV/flexmeasures/pull/106>`_]
* Allow plugins to customise the copyright notice and credits in the UI footer [see `PR #123 <http://www.github.com/SeitaBV/flexmeasures/pull/123>`_]

Bugfixes
-----------
Expand Down
4 changes: 4 additions & 0 deletions flexmeasures/ui/templates/base.html
Expand Up @@ -230,11 +230,14 @@
<footer class="page-footer font-small pt-4 mt-4">
<div class="footer text-center">
<div class="container-fluid">
{% block copyright_notice %}
FlexMeasures technology is created by <a href="https://seita.nl/">Seita Energy Flexibility</a>,
in cooperation with <a href="https://aoneeng.com/">A1 Engineering</a>
&copy
<script>var CurrentYear = new Date().getFullYear(); document.write(CurrentYear)</script>.
{% endblock copyright_notice %}

{% block credits %}
<a href="#" data-toggle="modal" data-target="#Credits">Credits</a>.

<!-- The modal -->
Expand Down Expand Up @@ -273,6 +276,7 @@ <h3>Icons from <a href="https://www.flaticon.com/" title="Flaticon">Flaticon</a>
</div>
</div>
</div>
{% endblock credits %}

<!-- We might render templates from plugins, where this meta info is not available -->
{% if app_running_since %}
Expand Down

0 comments on commit 760ea2a

Please sign in to comment.