Skip to content

Commit e9a38d9

Browse files
committed
ProductData
1 parent 9d6551e commit e9a38d9

File tree

3 files changed

+8
-4
lines changed

3 files changed

+8
-4
lines changed

packages/notifications-library/src/notifications_library/_models.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,5 +20,6 @@ class ProductData:
2020
display_name: str
2121
vendor_display_inline: str
2222
support_email: str
23-
product_logo: HttpUrl = "https://raw.githubusercontent.com/ITISFoundation/osparc-simcore/refs/heads/master/services/static-webserver/client/source/resource/osparc/osparc-black.svg"
24-
product_homepage: HttpUrl = "https://osparc.io/"
23+
logo: HttpUrl
24+
homepage: HttpUrl
25+
strong_color: str

packages/notifications-library/src/notifications_library/templates/on_new_invitation.email.content.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,6 @@
1111
<p>The <i>{{ product.display_name }}</i> Team</p>
1212
{% endblock %}
1313

14-
{% set product.logo = 'product.product_logo' %}
15-
{% set product.homepage = 'product.product_homepage' %}
14+
{% set product.logo = 'product.logo' %}
15+
{% set product.homepage = 'product.homepage' %}
1616
{% set product.support_email = 'product.support_email' %}

packages/notifications-library/tests/conftest.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,9 @@ def product_data(
6060
display_name=product["display_name"],
6161
vendor_display_inline=f"{vendor.get('name','')}, {vendor.get('address','')}",
6262
support_email=product["support_email"],
63+
logo=vendor.get('logo','https://raw.githubusercontent.com/ITISFoundation/osparc-simcore/refs/heads/master/services/static-webserver/client/source/resource/osparc/osparc-black.svg'),
64+
homepage=vendor.get('url','https://osparc.io/'),
65+
strong_color=vendor.get('strong_color','#8300bf'),
6366
)
6467

6568

0 commit comments

Comments
 (0)