1
0
mirror of https://github.com/LaCasemate/fab-manager.git synced 2025-01-17 06:52:27 +01:00

refactored notification_mailer for possible bug

undefined method _t for Class:0x...
This commit is contained in:
Sylvain 2020-05-12 17:11:31 +02:00
parent c5bbcf9381
commit 22e936dda5

View File

@ -1,4 +1,5 @@
<% fablab_name = Setting.find_by(name: 'fablab_name').value %>
<% fablab_gender = Setting.find_by(name: 'name_genre').value %>
<% primary_color = Stylesheet.primary %>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
@ -39,7 +40,7 @@
<tr>
<td>
<p>
<%= _t(".see_you_later", {GENDER:Setting.find_by(name: 'name_genre').value})
<%= _t(".see_you_later", { GENDER:fablab_gender })
# messageFormat
%> <a href="<%= root_url %>" style="color:<%=primary_color%>"> <%=fablab_name%></a>.</p>
<p><%= t(".sincerely") %><br><%= t(".signature") %></p>