1
0
mirror of https://github.com/LaCasemate/fab-manager.git synced 2024-12-12 23:09:03 +01:00
fab-manager/app/views/layouts/notifications_mailer.html.erb

68 lines
3.1 KiB
Plaintext
Raw Normal View History

2020-05-13 15:02:03 +02:00
<% fablab_name = Setting.get('fablab_name') %>
<% fablab_gender = Setting.get('name_genre') %>
2016-03-23 18:39:41 +01:00
<% primary_color = Stylesheet.primary %>
2015-05-05 03:10:25 +02:00
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<link href="http://fonts.googleapis.com/css?family=Roboto:400,500" rel="stylesheet" type="text/css">
<style type="text/css">
/* Client-specific Styles */
#outlook a{padding:0;} /* Force Outlook to provide a "view in browser" button. */
2016-03-23 18:39:41 +01:00
a{color:<%=primary_color%>;} a:hover{color:<%=primary_color%>;}
2015-05-05 03:10:25 +02:00
</style>
</head>
<body leftmargin="0" marginwidth="0" topmargin="0" marginheight="0" offset="0" style="width:100% !important; -webkit-text-size-adjust:none; margin:0; padding:0; background-color:#fafafa; font-family:Arial; font-size:14px;">
<center>
<table border="0" cellpadding="0" cellspacing="0" height="100%" width="100%" id="backgroundTable" style="height:100% !important; margin:0; padding:0; width:100% !important; background-color:#fafafa;">
<tr>
<td align="center" valign="top">
<p style="font-size:9px;">&nbsp;</p>
<table border="0" cellpadding="20" cellspacing="0" width="600" id="templateContainer" style="width:600px; border:1px solid #dddddd; background-color:#fff; -webkit-border-radius:2px; -moz-border-radius:2px; -ms-border-radius:2px; -o-border-radius:2px; border-radius:2px;">
<tr>
<td align="center">
2016-03-23 18:39:41 +01:00
<% if CustomAsset.get_url('logo-file') %>
2021-02-22 10:19:44 +01:00
<a href="<%= root_url %>">
<img src="<%= File.join(root_url, CustomAsset.get_url('logo-file')) %>"
alt="<%=fablab_name%>"
2023-10-13 10:38:59 +02:00
width="140" />
2021-02-22 10:19:44 +01:00
</a>
2016-03-23 18:39:41 +01:00
<% else %>
2021-02-22 10:19:44 +01:00
<a href="<%= root_url %>">
<img src="<%= File.join(root_url, asset_pack_path('static/fabmanager-logo.png')) %>"
2021-02-22 10:19:44 +01:00
alt="<%=fablab_name%>"
2023-10-13 10:38:59 +02:00
width="140" />
2021-02-22 10:19:44 +01:00
</a>
2016-03-23 18:39:41 +01:00
<% end %>
2015-05-05 03:10:25 +02:00
</td>
</tr>
<tr>
2016-03-23 18:39:41 +01:00
<td id="title" style="font-size:14px; color:#fff; font-weight:bold; background-color:<%=primary_color%>"><%= message.subject %></td>
2015-05-05 03:10:25 +02:00
</tr>
<tr>
<td>
<%= yield %>
</td>
</tr>
<tr>
<td>
2016-03-23 18:39:41 +01:00
<p>
<%= _t(".see_you_later", { GENDER:fablab_gender })
2016-03-23 18:39:41 +01:00
# messageFormat
%> <a href="<%= root_url %>" style="color:<%=primary_color%>"> <%=fablab_name%></a>.</p>
<p><%= t(".sincerely") %><br><%= t(".signature") %></p>
2015-05-05 03:10:25 +02:00
</td>
</tr>
<tr>
2016-03-23 18:39:41 +01:00
<td id="contactTd" style="color:#666; font-size:11px; background-color:#f3f3f3; padding:13px 20px 13px 20px; border-top:2px dashed #ddd;"><%= t('.do_not_reply') %></td>
2015-05-05 03:10:25 +02:00
</tr>
</table>
<p style="font-size:9px;">&nbsp;</p>
</td>
</tr>
</table>
</center>
</body>
2016-03-23 18:39:41 +01:00
</html>