Skip to content

Commit

Permalink
branding settings: add variable BRANDING.contact_support used in vari…
Browse files Browse the repository at this point in the history
…ous templates
  • Loading branch information
dschmitz2017 committed Jul 17, 2023
1 parent 87dcdc4 commit ea40898
Show file tree
Hide file tree
Showing 4 changed files with 17 additions and 5 deletions.
1 change: 1 addition & 0 deletions flowspy/settings.py.dist
Original file line number Diff line number Diff line change
Expand Up @@ -253,6 +253,7 @@ BRANDING = {
'email': 'helpdesk@example.com',
'logo': 'fodlogo2.png',
'favicon': 'favicon.ico',
'contact_support': 'GÉANT OC at <a href=\'mailto:support@oc.geant.net\'>support@oc.geant.net</a> or +44 1223 733033.',
}

SETTINGS_EXPORT = [
Expand Down
11 changes: 11 additions & 0 deletions templates/404.html
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,17 @@ <h1 class="page-header">Page not found</h1>
</div>
</div>

<!--
<div id="footer">
{% trans "If you have any questions or need help, contact" %}&nbsp;{{ settings.BRANDING.contact_support | safe }}
<a href="https://github.com/GEANT/FOD">FoD</strong></a> - <p>
{% trans "Designed and developed in GÉANT5-1 WP8-T3; Originally designed and developed by GRNET NOC" %}
</div>
</div>
-->


{% endblock %}


Expand Down
8 changes: 4 additions & 4 deletions templates/500.html
Original file line number Diff line number Diff line change
Expand Up @@ -3359,10 +3359,10 @@ <h3>The service is currently unavailiable - Internal error</h3>
</div>-->

<div id="footer">
If you have any questions or need help, contact GÉANT OC at <a href='mailto:support@oc.geant.net'>support@oc.geant.net</a> or +44 1223 733033.
<a href="https://github.com/GEANT/FOD">FoD</strong></a> - <p>
Designed and developed in GÉANT5-1 WP8-T3; Originally designed and developed by GRNET NOC
<div id="footer">
{% trans "If you have any questions or need help, contact" %}&nbsp;{{ settings.BRANDING.contact_support | safe }}
<a href="https://github.com/GEANT/FOD">FoD</strong></a> - <p>
{% trans "Designed and developed in GÉANT5-1 WP8-T3; Originally designed and developed by GRNET NOC" %}
</div>

</div>
Expand Down
2 changes: 1 addition & 1 deletion templates/footer.html
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
<footer class="footer">
<div id="footcontainer" class="container">
{% if user.is_authenticated %}
<p>{% trans "If you have any questions or need help, contact GÉANT OC at <a href='mailto:support@oc.geant.net'>support@oc.geant.net</a> or +44 1223 733033." %}</p>
<p>{% trans "If you have any questions or need help, contact" %}&nbsp;{{ settings.BRANDING.contact_support | safe }}</p>
{% endif %}
<!--<div style="padding-top: 10px;"><a href="https://code.grnet.gr/projects/flowspy">Version: <strong>{{ settings.SW_VERSION }}</strong></a> -->
<div style="padding-top: 10px;"><a href="https://github.com/GEANT/FOD">Version: <strong>{{ settings.SW_VERSION }}</strong></a> -
Expand Down

0 comments on commit ea40898

Please sign in to comment.