Skip to content

Commit df04634

Browse files
committed
add defaults
1 parent 130a9b7 commit df04634

File tree

1 file changed

+8
-4
lines changed
  • packages/notifications-library/src/notifications_library/templates

1 file changed

+8
-4
lines changed

packages/notifications-library/src/notifications_library/templates/base.html

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
{% set default_strong_color = "rgb(131, 0, 191)" %}
2+
{% set default_logo = "https://raw.githubusercontent.com/ITISFoundation/osparc-simcore/refs/heads/master/services/static-webserver/client/source/resource/osparc/osparc-black.svg" %}
3+
{% set default_homepage = "https://osparc.io/" %}
4+
15
<!DOCTYPE html>
26
<html lang="en">
37
<head>
@@ -40,7 +44,7 @@
4044
}
4145
.strong-button {
4246
cursor: pointer;
43-
background-color: {{ product.ui.strong_color }};
47+
background-color: {{ product.ui.strong_color | default(default_strong_color) }};
4448
color: white;
4549
padding: 10px;
4650
border: none;
@@ -81,8 +85,8 @@
8185
<body>
8286
<div class="email-container">
8387
<div class="header">
84-
<a href="{{ product.homepage_url }}" target="_blank" rel="noopener noreferrer">
85-
<img src="{{ product.ui.logo_url }}" alt="Logo" class="logo">
88+
<a href="{{ product.homepage_url | default(default_homepage) }}" target="_blank" rel="noopener noreferrer">
89+
<img src="{{ product.ui.logo_url | default(default_logo) }}" alt="Logo" class="logo">
8690
</a>
8791
</div>
8892

@@ -93,7 +97,7 @@
9397

9498
<div class="footer">
9599
<p>
96-
Visit the <a href="{{ product.homepage_url }}" target="_blank" rel="noopener noreferrer">Platform</a> |
100+
Visit the <a href="{{ product.homepage_url | default(default_homepage) }}" target="_blank" rel="noopener noreferrer">Platform</a> |
97101
Need help? <a href="mailto:{{ product.support_email }}">Support</a> |
98102
Powered by oSPARC
99103
<a href="https://github.com/ITISFoundation/osparc-simcore" target="_blank" rel="noopener noreferrer">

0 commit comments

Comments
 (0)