Skip to content

Commit

Permalink
BRANDING: extent with possibility to override short product name in e…
Browse files Browse the repository at this point in the history
…rror page etc.
  • Loading branch information
dschmitz2017 committed Aug 14, 2023
1 parent dd6085a commit c6ff268
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 4 deletions.
1 change: 1 addition & 0 deletions flowspy/settings.py.dist
Original file line number Diff line number Diff line change
Expand Up @@ -255,6 +255,7 @@ BRANDING = {
'favicon': 'favicon.ico',
'contact_support': 'GÉANT OC at <a href=\'mailto:[email protected]\'>[email protected]</a> or +44 1223 733033.',
'product_name' : 'Firewall-On-Demand',
'product_name_short' : 'FoD',
}

SETTINGS_EXPORT = [
Expand Down
3 changes: 2 additions & 1 deletion templates/500.html
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,8 @@
<meta http-equiv="content-type" content="text/html; charset=UTF-8">


<title>GEANT's FoD</title>
<!--<title>GEANT's FoD</title>-->
<title>{{ settings.BRANDING.name }}'s {{ settings.BRANDING.product_name_short|default:'FoD' }}</title>
<meta http-equiv="Pragma" content="no-cache">
<meta http-equiv="expires" content="Wed, 26 Feb 1997 08:21:57 GMT">

Expand Down
2 changes: 1 addition & 1 deletion templates/base.html
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>{{ settings.BRANDING.name }} FoD :: {% block title %}{% endblock %}</title>
<title>{{ settings.BRANDING.name }} {{ settings.BRANDING.product_name_short|default:'FoD' }} :: {% block title %}{% endblock %}</title>
<META HTTP-EQUIV="Pragma" CONTENT="no-cache">
<META HTTP-EQUIV="expires" CONTENT="Wed, 26 Feb 1997 08:21:57 GMT">
<link REL="SHORTCUT ICON" HREF="{% get_static_prefix %}/{{ settings.BRANDING.favicon }}">
Expand Down
2 changes: 1 addition & 1 deletion templates/django_registration/activation_complete.txt
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
Your account with username {{ user.username }} has been activated.

You may login to FoD using the following URL:
You may login to {{ settings.BRANDING.product_name_short|default:'FoD' }} using the following URL:

http://{{ site.domain }}{% url 'login' %}

Expand Down
2 changes: 1 addition & 1 deletion templates/flowspy/route_details.html
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ <h2>{% trans 'About' %}</h2>
{% endif %}
</div>
{% endif %}
<br> FoD Rule Id: {{ route.id }}
<br> {{ settings.BRANDING.product_name_short|default:'FoD' }} Rule Id: {{ route.id }}
</div>
<div>
<h2>Statistics</h2>
Expand Down

0 comments on commit c6ff268

Please sign in to comment.