Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add footer blocks (copyright notice and credits) #123

Merged
merged 2 commits into from May 6, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
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