-
Notifications
You must be signed in to change notification settings - Fork 77
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
Merged
Merged
Mails styling invite #1654
Changes from all commits
Commits
Show all changes
17 commits
Select commit
Hold shift + click to select a range
5631a9c
merge with develop
faadf51
Format invitation email
6ae7480
Fix link
9a2443e
Fix styling
84f9a27
Merge branch 'develop' into mails-styling-invite
9241db3
fix styling
a49f957
Merge branch 'develop' into mails-styling-invite
3c17da2
Merge branch 'develop' into mails-styling-invite
adititipnis 1dec200
Fix specs
a3ce8fa
Merge branch 'develop' into mails-styling-invite
ab0cb02
Merge branch 'mails-styling-invite' of https://github.com/saeloun/mir…
ab7a9f2
Fix
94ca3b4
Merge branch 'develop' into mails-styling-invite
6c21474
Merge branch 'develop' into mails-styling-invite
adititipnis 364edfa
Merge branch 'develop' into mails-styling-invite
9fadfc7
Get images from assets
dd20187
Merge branch 'mails-styling-invite' of https://github.com/saeloun/mir…
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
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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
53 changes: 39 additions & 14 deletions
53
app/views/mailers/user_invitation_mailer/send_user_invitation.html.erb
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 |
---|---|---|
@@ -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"> | ||
<%= image_tag "Background.svg", class: "background", alt: "background" %> | ||
<%= image_tag "Banner.svg", class: "banner", 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'> | ||
<%= image_tag(@sender_details&.[](:avatar) || "avatar.svg", alt:"User avatar", height: "40", width: "40") %> | ||
<b><%= @sender_details&.[](:name) %></b> | ||
<%= @sender_details&.[](:email) %> | ||
</div> | ||
<div class='company'> | ||
<%= image_tag(@company_details&.[](:logo) || "miru-logo.svg", alt:"Company logo", height: "40px", width: "40px") %> | ||
<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 /> | ||
|
||
<p>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:support@miru.so" class="purple">support@miru.so</a></p> | ||
|
||
<div class="about-miru-container"> | ||
<div class="about-miru"> | ||
<%= image_tag "about-miru-background.svg", class:"about-miru-background", alt:"about-miru-background" %> | ||
<%= image_tag "miru-logo.svg", class:"miru-logo", alt:"miru-logo" %> | ||
|
||
<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> |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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.
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.
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" %>