-
Notifications
You must be signed in to change notification settings - Fork 75
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
Mails styling invite #1654
Mails styling invite #1654
Changes from 13 commits
5631a9c
faadf51
6ae7480
9a2443e
84f9a27
9241db3
a49f957
3c17da2
1dec200
a3ce8fa
ab0cb02
ab7a9f2
94ca3b4
6c21474
364edfa
9fadfc7
dd20187
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,26 +1,51 @@ | ||
<!DOCTYPE html> | ||
<%= stylesheet_link_tag "application" %> | ||
<html> | ||
<head> | ||
<meta content='text/html; charset=UTF-8' http-equiv='Content-Type'/> | ||
</head> | ||
<body style="color:#1D1A31"> | ||
<p>Hi <%= @name %>, </p> | ||
<div class="mail invitation"> | ||
<img class="background" src=<%= Rails.root.join('public', 'Background.svg') %> alt="background"> | ||
<img class="banner" src=<%= Rails.root.join('public', 'Banner.svg') %> alt="banner"> | ||
<p class="header">You have been invited to Miru</p> | ||
|
||
<p>We are so delighted to have you onboard. We want to let you know some of the best ways to get up and running on Miru,</p> | ||
<p><%= @sender_details&.[](:name) %> (<%= @sender_details&.[](:email) %>) has invited you to join <%=@company_details&.[](:name) %> team on Miru</p> | ||
|
||
<ul> | ||
<li>Send professional invoices instantly</li> | ||
<li>Accept payments from clients seamlessly</li> | ||
<li>Manage your team and track their progress</li> | ||
<li>Track your time and overall expenses with ease</li> | ||
</ul> | ||
<div class='sender_company_container'> | ||
<div class='sender'> | ||
<img src=<%= @sender_details&.[](:avatar) ? @sender_details&.[](:avatar) : Rails.root.join('public', 'avatar.svg') %> alt="User avatar" height="40px" width="40px"> | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. ditto. check if image is in assets/images if not then move it and use the <%= image_tag %> |
||
<b><%= @sender_details&.[](:name) %></b> | ||
<%= @sender_details&.[](:email) %> | ||
</div> | ||
<div class='company'> | ||
<img src=<%=@company_details&.[](:logo) ?@company_details&.[](:logo) : Rails.root.join('public', 'miru-logo.svg') %> alt="User avatar" height="40px" width="40px"> | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. here too |
||
<b><%=@company_details&.[](:name) %></b> | ||
<%=@company_details&.[](:employee_count) %> members | ||
</div> | ||
</div> | ||
|
||
<p> | ||
Please <%= link_to "click here", invitations_accepts_url(token: @token), target: "_blank" %> to accept the invitation. | ||
<small>(This link will only be valid for 14 days.)</small> | ||
</p> | ||
To get started, set your password by clicking the button below: | ||
|
||
<p>Cheers,</p> | ||
<p>Team Miru</p> | ||
<p class="button"><%= link_to 'Join Miru', invitations_accepts_url(token: @token), target: "_blank" %></p> | ||
|
||
<hr /> | ||
|
||
If you don’t know this user or think this was sent by mistake, please flag this request to our team at <a href="mailto:[email protected]" class="purple">[email protected]</a> | ||
|
||
<div class="about-miru-container"> | ||
<div class="about-miru"> | ||
<img class="about-miru-background" src=<%= Rails.root.join('public', 'about-miru-background.svg') %> alt="about-miru-background"> | ||
<img class="miru-logo" src=<%= Rails.root.join('public', 'miru-logo.svg') %> alt="miru-logo"> | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. ditto |
||
|
||
<div class="desc"> | ||
<p class="header">About Miru</p> | ||
<p>Miru is an open-source time-tracking & invoicing tool developed by a team of experienced developers. Using Miru, you can track your time, create and send invoices for those time entries to your clients & received instant payments.</p> | ||
<p class="button"><%= link_to 'Learn More >', 'https://www.miru.so/', target: "_blank" %></p> | ||
</div> | ||
</div> | ||
</div> | ||
|
||
<%= render "devise/shared/footer" %> | ||
</body> | ||
</html> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I have moved these to assets/images because the public folder is not available to build. Also, use it like this
<%= image_tag "Background.svg", class: "background" %>