Skip to content

Commit

Permalink
User collaboration url (#421)
Browse files Browse the repository at this point in the history
* user collaboration

* collaboration URL

* client URL
  • Loading branch information
denishjackson1 authored Jun 22, 2023
1 parent 1f6129e commit dcaa62b
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 4 deletions.
7 changes: 5 additions & 2 deletions app/helpers/user_to_project_notification.py
Original file line number Diff line number Diff line change
@@ -1,10 +1,13 @@
from flask import render_template
from .email import send_email
from flask import Flask, request


def send_user_to_project_notification( email, name, app, template, subject, date, project_name, email_role, success):
html = render_template(template,
email=email,
client_base_url = f'https://{request.host}/register'
html = render_template(template,
email=email,
client_base_url=client_base_url,
name=name,
date= date,
project_name = project_name,
Expand Down
2 changes: 1 addition & 1 deletion templates/user/anonymous_user_to_project.html
Original file line number Diff line number Diff line change
Expand Up @@ -186,7 +186,7 @@
<tr>
<td align="center" style="border-radius: 3px" bgcolor="#008AC1">
<a
href="https://cranecloud.io/register"
href={{client_based_url}}
target="_blank"
style="
font-size: 20px;
Expand Down
2 changes: 1 addition & 1 deletion templates/user/user_to_project.html
Original file line number Diff line number Diff line change
Expand Up @@ -185,7 +185,7 @@
<tr>
<td align="center" style="border-radius: 3px" bgcolor="#008AC1">
<a
href="https://app.cranecloud.io/login"
href={{client_based_url}}
target="_blank"
style="
font-size: 20px;
Expand Down

0 comments on commit dcaa62b

Please sign in to comment.