-
Notifications
You must be signed in to change notification settings - Fork 14.4k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Add email functionality * Add email templates. * Test notifications * Move email to utils
- Loading branch information
Showing
9 changed files
with
320 additions
and
24 deletions.
There are no files selected for viewing
This file contains 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 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,14 @@ | ||
Dear {{ user.username }}, | ||
<br> | ||
<a href={{ url_for('Superset.profile', username=granter.username, _external=True) }}> | ||
{{ granter.username }}</a> has extended the role {{ role.name }} to include | ||
<a href={{ url_for('Superset.explore', datasource_type=datasource.type, datasource_id=datasource.id, _external=True) }}> | ||
{{datasource.full_name}}</a> and granted you access to it. | ||
<br> | ||
<br> | ||
To see all your permissions please visit your | ||
<a href={{ url_for('Superset.profile', username=user.username, _external=True) }}> | ||
profile page</a>. | ||
<br> | ||
<br> | ||
Regards, Superset Admin. |
This file contains 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,18 @@ | ||
Dear {{ user.username }}, | ||
<br> | ||
<a href={{ url_for('Superset.profile', username=granter.username, _external=True) }}> | ||
{{ granter.username }}</a> has granted you the role {{ role.name }} | ||
that gives access to the | ||
<a href={{ url_for('Superset.explore', datasource_type=datasource.type, datasource_id=datasource.id, _external=True) }}> | ||
{{datasource.full_name}}</a> | ||
<br> | ||
<br> | ||
In addition to that role grants you access to the: {{ role.permissions }}. | ||
<br> | ||
<br> | ||
To see all your permissions please visit your | ||
<a href={{ url_for('Superset.profile', username=user.username, _external=True) }}> | ||
profile page</a>. | ||
<br> | ||
<br> | ||
Regards, Superset Admin. |
This file contains 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 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 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 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.