Skip to content

Commit 2b42ed4

Browse files
committed
feat(board): add mail netcom new board
1 parent 8f34984 commit 2b42ed4

File tree

2 files changed

+86
-0
lines changed

2 files changed

+86
-0
lines changed
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,76 @@
1+
2+
<!DOCTYPE html>
3+
<html lang="en">
4+
5+
<%= render(OmsmailerWeb.SnippetsView, "head.html", title: "MyAEGEE: New board added for " <> @parameters["body_name"]) %>
6+
7+
8+
<body style="width:100% !important;-webkit-text-size-adjust:100%;-ms-text-size-adjust:100%;margin-top:0;margin-bottom:0;margin-right:0;margin-left:0;padding-top:0;padding-bottom:0;padding-right:0;padding-left:0;">
9+
<table cellpadding="0" cellspacing="0" border="0" id="backgroundTable" style="margin:0; padding:0; width:100% !important; line-height: 100% !important; border-collapse:collapse; mso-table-lspace:0pt; mso-table-rspace:0pt;background-color: #F9FAFB;"
10+
width="100%">
11+
<tbody>
12+
<tr>
13+
<td width="10" valign="top">&nbsp;</td>
14+
<td valign="top" align="center">
15+
<table cellpadding="0" cellspacing="0" border="0" align="center" style="width: 100%; max-width: 600px; background-color: #FFF; border-collapse:collapse;mso-table-lspace:0pt;mso-table-rspace:0pt;"
16+
id="contentTable">
17+
<tbody>
18+
<tr>
19+
<td width="600" valign="top" align="center" style="border-collapse:collapse;">
20+
<table align="center" border="0" cellpadding="0" cellspacing="0" style="background: #F9FAFB;" width="100%">
21+
<tbody>
22+
<tr>
23+
<td align="center" valign="top">
24+
<div style="font-family: &quot;lato&quot;, &quot;Helvetica Neue&quot;, Helvetica, Arial, sans-serif; line-height: 28px;">&nbsp;</div>
25+
</td>
26+
</tr>
27+
</tbody>
28+
</table>
29+
<table align="center" border="0" cellpadding="0" cellspacing="0" style="border: 1px solid #E0E4E8;"
30+
width="100%">
31+
<tbody>
32+
<tr>
33+
<td align="center" style="padding: 56px 56px 28px 56px;" valign="top">
34+
<a style="color: #3498DB; text-decoration: none;" href="my.aegee.eu"
35+
target="_blank"><img style="width: 56px; height: 56px; border: 0;" alt="AEGEE-Europe"
36+
src="https://my.aegee.eu/images/logo.png">
37+
</a></td>
38+
</tr>
39+
<tr>
40+
<td align="center" style="padding: 0 56px 28px 56px;" valign="top">
41+
<div style="font-family: &quot;lato&quot;, &quot;Helvetica Neue&quot;, Helvetica, Arial, sans-serif; line-height: 28px;font-size: 20px; color: #333;"><strong>A new board has successfully been added for <%= @parameters["event"]["name"] %></strong></div>
42+
</td>
43+
</tr>
44+
<tr>
45+
<td style="padding: 0 56px 28px 56px;" valign="top">
46+
<div style="font-family: &quot;lato&quot;, &quot;Helvetica Neue&quot;, Helvetica, Arial, sans-serif; line-height: 28px;font-size: 16px; color: #333;">
47+
Here are their details:
48+
<%= render(OmsmailerWeb.SnippetsView, "board_info.html", parameters: @parameters ) %>
49+
</div>
50+
</td>
51+
</tr>
52+
</tbody>
53+
</table>
54+
<table align="center" border="0" cellpadding="0" cellspacing="0" style="background: #F9FAFB;" width="100%">
55+
<tbody>
56+
<tr>
57+
<td align="center" style="padding: 28px 56px;" valign="top">
58+
<div style="font-family: &quot;lato&quot;, &quot;Helvetica Neue&quot;, Helvetica, Arial, sans-serif; line-height: 28px;font-size: 16px; line-height: 24px; color: #A7ADB5;">This email was autogenerated by MyAEGEE mailer.</div>
59+
</td>
60+
</tr>
61+
</tbody>
62+
</table>
63+
</td>
64+
</tr>
65+
</tbody>
66+
</table>
67+
</td>
68+
</tr>
69+
</tbody>
70+
</table>
71+
72+
73+
74+
</body>
75+
76+
</html>
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
<ul>
2+
<li><strong>Body name: </strong><%= @parameters["body_name"] %></li>
3+
<li><strong>Elected date: </strong><%= @parameters["board"]["elected_date"] %></li>
4+
<li><strong>Start date: </strong><%= @parameters["board"]["start_date"] %></li>
5+
<li><strong>End date: </strong><%= @parameters["board"]["end_date"] %></li>
6+
<%= for {other} <- @parameters["positions"] do %>
7+
<li><strong><%= other["function"] %> </strong> <%= other["name"] %></li>
8+
<% end %>
9+
<li><strong>Message: </strong><%= @parameters["board"]["message"] %></li>
10+
</ul>

0 commit comments

Comments
 (0)