-
Notifications
You must be signed in to change notification settings - Fork 32
🎨 Feature: on share project email #7455
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
Merged
mergify
merged 67 commits into
ITISFoundation:master
from
odeimaiz:feature/on-share-project-email
Apr 7, 2025
Merged
Changes from 64 commits
Commits
Show all changes
67 commits
Select commit
Hold shift + click to select a range
c3fb2bb
update base-html
odeimaiz 32c56b0
parametrize base.html
odeimaiz 316b330
pass product metadata
odeimaiz 7e29b7e
minor
odeimaiz 7bf0043
extend ProductData model
odeimaiz 4a63e42
HttpUrl
odeimaiz dc02a80
renaming
odeimaiz 9d6551e
add logo and strong_color to Vendor's model
odeimaiz e9a38d9
ProductData
odeimaiz 9d6f69d
minor
odeimaiz f34fe9e
set product info
odeimaiz e7e4b6c
minor
odeimaiz 500797c
Merge branch 'master' into enh/prettify-base-email
odeimaiz f254081
no need to pass the args
odeimaiz e715f71
Merge branch 'enh/prettify-base-email' of github.com:odeimaiz/osparc-…
odeimaiz a90238c
strong-button for links
odeimaiz 8851478
Manrope by default
odeimaiz 66d25cc
prettify button
odeimaiz f50cae5
more buttons
odeimaiz a98d9b9
inline styling
odeimaiz 7b4f3c1
minor
odeimaiz 1771fa1
buttons templated strong color
odeimaiz 9c2c0f3
minor
odeimaiz c64124e
Merge branch 'master' into enh/prettify-base-email
odeimaiz 423a842
product ui data
odeimaiz 6e2eb50
.ui.
odeimaiz f5f31c4
minor
odeimaiz 0977198
ui -> product_ui
odeimaiz 04e75de
1st try
odeimaiz 9073d4f
back
odeimaiz c9c72bf
typo
odeimaiz 081bbe1
fix test
odeimaiz 130a9b7
product_ui -> ui
odeimaiz df04634
add defaults
odeimaiz 1c63495
vendor.ui
odeimaiz 2a0c1d6
Merge branch 'master' into enh/prettify-base-email
odeimaiz 47087d5
Merge branch 'master' into enh/prettify-base-email
odeimaiz 900941c
add emails
odeimaiz 1337fa3
include them in the testing
odeimaiz ee53285
Merge branch 'master' into feature/on-share-project-email
odeimaiz 1ed4955
Merge branch 'master' into feature/on-share-project-email
odeimaiz 865b15a
pass sharer_message and put it in a box
odeimaiz e801dc4
minor fix
odeimaiz de27334
typo
odeimaiz 264ef9e
minor
odeimaiz 05b483f
enable testing
odeimaiz 79e3634
project_alias is part of product_ui
odeimaiz f511ff0
minor
odeimaiz 6713746
random
odeimaiz 6a374e8
SharerData
odeimaiz fb59670
SharerData
odeimaiz c174a4f
sharer
odeimaiz 5e14a72
typo
odeimaiz bcc714b
typo
odeimaiz 93852c3
Merge branch 'master' into feature/on-share-project-email
odeimaiz 85b30fc
default to empty string
odeimaiz 7afb556
random_element
odeimaiz 64b3e3f
user.first_name or user.user_name
odeimaiz fd14931
SharerData will go in the other_data
odeimaiz 4c109c8
extend event_extra_data with optional sharer_data
odeimaiz c76a716
let faker provide a sentence or empty
odeimaiz 423c324
make it part of the event_extra_data
odeimaiz 73a4e48
minor
odeimaiz 6d3a6d0
enable tests
odeimaiz 53517c6
fix test
odeimaiz 32640f7
user_name for UserData
odeimaiz 23f84cb
minor
odeimaiz File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
...ifications-library/src/notifications_library/templates/on_change_email.email.content.html
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
...tifications-library/src/notifications_library/templates/on_change_email.email.content.txt
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
.../notifications-library/src/notifications_library/templates/on_new_code.email.content.html
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
...s/notifications-library/src/notifications_library/templates/on_new_code.email.content.txt
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
...ications-library/src/notifications_library/templates/on_new_invitation.email.content.html
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
...fications-library/src/notifications_library/templates/on_new_invitation.email.content.txt
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
...ages/notifications-library/src/notifications_library/templates/on_payed.email.content.txt
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
...otifications-library/src/notifications_library/templates/on_registered.email.content.html
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
...notifications-library/src/notifications_library/templates/on_registered.email.content.txt
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
...ications-library/src/notifications_library/templates/on_reset_password.email.content.html
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
...fications-library/src/notifications_library/templates/on_reset_password.email.content.txt
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
29 changes: 29 additions & 0 deletions
29
...fications-library/src/notifications_library/templates/on_share_project.email.content.html
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,29 @@ | ||
| {% extends 'base.html' %} | ||
| {% block title %} {% include 'on_share_project.email.subject.txt' %} {% endblock %} | ||
| {% block content %} | ||
| <p>Dear {{ user.first_name or user.user_name }},</p> | ||
|
|
||
| <p>Great news! {{ sharer.user_name }} has shared a {{ product.ui.project_alias }} with you on {{ product.display_name }}.</p> | ||
|
|
||
| <p>To view the {{ product.ui.project_alias }} and accept the sharing, follow below:</p> | ||
|
|
||
| <p> | ||
| {% if sharer.message %} | ||
| <div style="border: 1px solid #ccc; padding: 16px; border-radius: 8px; background-color: #f9f9f9;"> | ||
| <p style="margin-top: 0;">{{ sharer.message }}</p> | ||
| <button class="strong-button" style="border-radius: 4px;"> | ||
odeimaiz marked this conversation as resolved.
Show resolved
Hide resolved
|
||
| <a href="{{ accept_link }}" style="color: white;">Open</a> | ||
| </button> | ||
| </div> | ||
| {% else %} | ||
| <button class="strong-button" style="border-radius: 4px;"> | ||
| <a href="{{ accept_link }}" style="color: white;">Open</a> | ||
| </button> | ||
| {% endif %} | ||
| </p> | ||
|
|
||
| <p>Please don't hesitate to contact us at {{ product.support_email }} if you need further help.</p> | ||
|
|
||
| <p>Best Regards,</p> | ||
| <p>The <i>{{ product.display_name }}</i> Team</p> | ||
| {% endblock %} | ||
13 changes: 13 additions & 0 deletions
13
...ifications-library/src/notifications_library/templates/on_share_project.email.content.txt
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,13 @@ | ||
| Dear {{ user.first_name or user.user_name }}, | ||
|
|
||
| Great news! {{ sharer.user_name }} has shared a {{ product.ui.project_alias }} with you on {{ product.display_name }}. | ||
|
|
||
| To view the {{ product.ui.project_alias }} and accept the sharing, follow below: | ||
|
|
||
| {{ sharer.message }} | ||
| {{ accept_link }} | ||
|
|
||
| Please don't hesitate to contact us at {{ product.support_email }} if you need further help. | ||
|
|
||
| Best Regards, | ||
| The {{ product.display_name }} Team |
1 change: 1 addition & 0 deletions
1
...ifications-library/src/notifications_library/templates/on_share_project.email.subject.txt
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1 @@ | ||
| A {{ product.ui.project_alias }} was shared with you on {{ host }} |
2 changes: 1 addition & 1 deletion
2
...otifications-library/src/notifications_library/templates/on_unregister.email.content.html
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
...notifications-library/src/notifications_library/templates/on_unregister.email.content.txt
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -18,6 +18,7 @@ | |
| "on_payed", | ||
| "on_registered", | ||
| "on_reset_password", | ||
| "on_share_project", | ||
| "on_unregister", | ||
| ], | ||
| ) | ||
|
|
||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.