Skip to content

Commit

Permalink
Modified mail template, changes assets url (#518)
Browse files Browse the repository at this point in the history
  • Loading branch information
Hrishabh17 authored Mar 28, 2024
1 parent a2b7e4f commit d580250
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 12 deletions.
2 changes: 1 addition & 1 deletion apps/workspaces/tasks.py
Original file line number Diff line number Diff line change
Expand Up @@ -158,7 +158,7 @@ def run_email_notification(workspace_id):
'year': date.today().year,
'export_time': export_time.date() if export_time else datetime.now(),
'app_url': "{0}/workspaces/{1}/expense_groups".format(settings.FYLE_APP_URL, workspace_id),
'fyle_netsuite_url': settings.FYLE_NETSUITE_URL
'integrations_app_url': settings.INTEGRATIONS_APP_URL
}

message = render_to_string("mail_template.html", context)
Expand Down
18 changes: 9 additions & 9 deletions apps/workspaces/templates/mail_template.html
Original file line number Diff line number Diff line change
Expand Up @@ -22,21 +22,21 @@
style="font-family: Helvetica,Arial; border-collapse: collapse; background-color: #ffffff; border-radius: 4px; border: solid 1px #d8d8d8;">
<tr>
<td bgcolor="#f3f5f6"
background="https://raw.githubusercontent.com/fylein/fyle-netsuite-api/b1ebe6c1db08c4e85cc34244f8bf5a1b3f1219ea/apps/workspaces/templates/images/background.png"
background="{{integrations_app_url}}/assets/logos/email/background.png"
style="padding: 10px 25px 10px 25px;" width="600" height="50">

<table width="35%">
<tr>
<td>
<img src="{{fyle_netsuite_url}}/assets/images/pngs/fyle-logo.png" alt="Fyle" title="Fyle"
<img src="{{integrations_app_url}}/assets/logos/email/fyle_logo_black_full.png" alt="Fyle" title="Fyle"
style="display:block" height="23" width="67" />
</td>
<td align="right">
<span style="margin-left: 5px;margin-right: 5px;">+</span>
</td>
<td align="right">
<img
src="https://raw.githubusercontent.com/fylein/fyle-netsuite-api/9befc3bb2641ce438d048507c3d154c9e595dd04/apps/workspaces/templates/images/netsuite.png"
src="{{integrations_app_url}}/assets/logos/email/netsuite.png"
alt="{{org_logo.title}}" title="{{org_logo.title}}" style="display:block" height="23" />
</td>
</tr>
Expand All @@ -49,7 +49,7 @@
<tr align="center">
<td>
<img style="height: 150px;"
src="https://raw.githubusercontent.com/fylein/fyle-netsuite-api/e05abf142208368b88a530f3d8bb25456fef4d26/apps/workspaces/templates/images/icon.png">
src="{{integrations_app_url}}/assets/logos/email/icon.png">
</td>
</tr>
<tr align="center">
Expand Down Expand Up @@ -148,13 +148,13 @@
<td style="padding: 0px 5px;">
<a href="https://itunes.apple.com/in/app/fyle-track-report-expenses/id1137906166">
<img alt="Appstore" title="Appstore"
src="https://raw.githubusercontent.com/fylein/fyle-netsuite-api/b1ebe6c1db08c4e85cc34244f8bf5a1b3f1219ea/apps/workspaces/templates/images/appstore.png"
src="{{integrations_app_url}}/assets/logos/email/Apple_logo_grey.png"
height="18" width="16">
</a>
<td style="padding: 0px 5px;">
<a href="https://play.google.com/store/apps/details?id=com.ionicframework.fyle595781">
<img alt="Playstore" title="Playstore"
src="https://raw.githubusercontent.com/fylein/fyle-netsuite-api/b1ebe6c1db08c4e85cc34244f8bf5a1b3f1219ea/apps/workspaces/templates/images/playstore.png"
src="{{integrations_app_url}}/assets/logos/email/playstore.png"
height="16" width="16">
</a>

Expand All @@ -165,15 +165,15 @@
<a
href="https://chrome.google.com/webstore/detail/fyle-expense-tracking-rep/abggpefphmldapcoknbcaadbpdjjmjgk">
<img alt="Gmail" title="Gmail"
src="https://raw.githubusercontent.com/fylein/fyle-netsuite-api/b1ebe6c1db08c4e85cc34244f8bf5a1b3f1219ea/apps/workspaces/templates/images/gmail.png"
src="{{integrations_app_url}}/assets/logos/email/gmail.png"
height="18" width="20">
</a>

</td>
<td style="padding: 0px 5px;">
<a href="https://appsource.microsoft.com/en-us/product/office/WA104380673">
<img alt="Outlook" title="Outlook"
src="https://raw.githubusercontent.com/fylein/fyle-netsuite-api/b1ebe6c1db08c4e85cc34244f8bf5a1b3f1219ea/apps/workspaces/templates/images/outlool.png"
src="{{integrations_app_url}}/assets/logos/email/outlook.png"
height="18" width="16">
</a>
</td>
Expand All @@ -186,7 +186,7 @@
</tr>
<tr>
<td
background="https://raw.githubusercontent.com/fylein/fyle-netsuite-api/b1ebe6c1db08c4e85cc34244f8bf5a1b3f1219ea/apps/workspaces/templates/images/background.png"
background="{{integrations_app_url}}/assets/logos/email/background.png"
style="padding: 10px 10px 8px 5px; background-color: #f3f5f6;">
<table align="center">
<tr style="color: #4A4A4A; font-size: 12px; text-align: center; line-height: 20px;">
Expand Down
2 changes: 1 addition & 1 deletion fyle_netsuite_api/settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -293,7 +293,7 @@
FYLE_BASE_URL = os.environ.get('FYLE_BASE_URL')
FYLE_APP_URL = os.environ.get('APP_URL')
FYLE_EXPENSE_URL = os.environ.get('FYLE_APP_URL')
FYLE_NETSUITE_URL = os.environ.get('FYLE_NETSUITE_URL')
INTEGRATIONS_APP_URL = os.environ.get('INTEGRATIONS_APP_URL')

# Netsuite Settings
NS_CONSUMER_KEY = os.environ.get('NS_CONSUMER_KEY')
Expand Down
2 changes: 1 addition & 1 deletion fyle_netsuite_api/tests/settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -268,7 +268,7 @@
FYLE_EXPENSE_URL = os.environ.get('FYLE_APP_URL')
INTEGRATIONS_SETTINGS_API = os.environ.get('INTEGRATIONS_SETTINGS_API')
NETSUITE_INTEGRATION_APP_URL = os.environ.get('NETSUITE_INTEGRATION_APP_URL')
FYLE_NETSUITE_URL = os.environ.get('FYLE_NETSUITE_URL')
INTEGRATIONS_APP_URL = os.environ.get('INTEGRATIONS_APP_URL')

# Netsuite Settings
NS_ACCOUNT_ID = 'sdfghj'
Expand Down

0 comments on commit d580250

Please sign in to comment.