-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Refactored spec for auth based on new setup
- Loading branch information
Showing
7 changed files
with
121 additions
and
42 deletions.
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.
45 changes: 45 additions & 0 deletions
45
app/views/scenario_invitation_mailer/scenario_invitation.en.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 |
---|---|---|
@@ -0,0 +1,45 @@ | ||
<!DOCTYPE html> | ||
<html> | ||
<head> | ||
<title>Invitation Email</title> | ||
<style> | ||
p {font-family: Arial, sans-serif; color: #333;} | ||
p a {color: #007BFF; text-decoration: none;} | ||
p.light { | ||
color: #777; | ||
font-size: 14px; | ||
margin-bottom: 30px; | ||
} | ||
|
||
.box-around-image { | ||
background-color: #4e98e4; | ||
padding: 10px 10px 5px; | ||
border-radius: 3px; | ||
display: block; | ||
width: 200px | ||
} | ||
</style> | ||
</head> | ||
<body> | ||
<p>Hello!</p> | ||
|
||
<p> | ||
<%= @inviter_name %> has just invited you to collaborate on the scenario "<%= @saved_scenario_title %>" of the Energy Transition Model as <%=t("scenario_invitation_mailer.roles.#{@new_role}")%>. | ||
</p> | ||
<p> | ||
If you already have an account with <a href="<%= Settings.etmodel_uri %>">https://energytransitionmodel.com/</a>, follow <a href="<%= @saved_scenario_link %>">this link to view the scenario</a> and start collaborating! | ||
</p> | ||
|
||
<p> | ||
If you don't have an account yet, click <a href="<%= new_user_registration_url %>">here to register</a>. | ||
</p> | ||
|
||
<p class="light"> | ||
If you weren't expecting this invitation, please ignore this email. | ||
</p> | ||
<a class="box-around-image" href="<%= Settings.etmodel_uri %>"> | ||
<%=email_inline_image_tag("logo.png", style: "width: 200px; height: auto")%> | ||
</a> | ||
|
||
</body> | ||
</html> |
45 changes: 45 additions & 0 deletions
45
app/views/scenario_invitation_mailer/scenario_invitation.nl.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 |
---|---|---|
@@ -0,0 +1,45 @@ | ||
<!DOCTYPE html> | ||
<html> | ||
<head> | ||
<title>Uitnodigingsemail</title> | ||
<style> | ||
p {font-family: Arial, sans-serif; color: #333;} | ||
p a {color: #007BFF; text-decoration: none;} | ||
p.light { | ||
color: #777; | ||
font-size: 14px; | ||
margin-bottom: 30px; | ||
} | ||
|
||
.box-around-image { | ||
background-color: #4e98e4; | ||
padding: 10px 10px 5px; | ||
border-radius: 3px; | ||
display: block; | ||
width: 200px | ||
} | ||
</style> | ||
</head> | ||
<body> | ||
<p>Hallo!</p> | ||
|
||
<p> | ||
<%= @inviter_name %> heeft je zojuist uitgenodigd om samen te werken aan het scenario "<%= @saved_scenario_title %>" van het Energietransitiemodel als <%=t("scenario_invitation_mailer.roles.#{@new_role}")%>. | ||
</p> | ||
<p> | ||
Als je al een account hebt bij <a href="<%= Settings.etmodel_uri %>">https://energytransitionmodel.com/</a>, volg dan <a href="<%= @saved_scenario_link %>">deze link om het scenario te bekijken</a> en begin met samenwerken! | ||
</p> | ||
|
||
<p> | ||
Als je nog geen account hebt, klik dan <a href="<%= new_user_registration_url %>">hier om je aan te melden</a>. | ||
</p> | ||
|
||
<p class="light"> | ||
Als je deze uitnodiging niet verwachtte, negeer dan deze e-mail. | ||
</p> | ||
<a class="box-around-image" href="<%= Settings.etmodel_uri %>"> | ||
<%=email_inline_image_tag("logo.png", style: "width: 200px; height: auto")%> | ||
</a> | ||
|
||
</body> | ||
</html> |
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