mirror of
https://github.com/LaCasemate/fab-manager.git
synced 2025-02-20 14:54:15 +01:00
(bug) broken notifications email
This commit is contained in:
parent
57683125a8
commit
b588f1c780
@ -1,6 +1,7 @@
|
||||
# Changelog Fab-manager
|
||||
|
||||
- Fix a bug: notification is broken when delete a project
|
||||
- Fix a bug: broken notifications email
|
||||
- [TODO DEPLOY] `rails fablab:maintenance:clean_abuse_notifications`
|
||||
|
||||
## v6.0.3 2023 April 12
|
||||
|
@ -1,10 +1,10 @@
|
||||
<%= render 'notifications_mailer/shared/hello', recipient: @recipient %>
|
||||
|
||||
<p>
|
||||
<%= t('.body.low_stock', { PRODUCT: @attached_object.name }) %>
|
||||
<%= t('.body.low_stock', **{ PRODUCT: @attached_object.name }) %>
|
||||
</p>
|
||||
<p>
|
||||
<%= t('.body.stocks_state_html', { INTERNAL: @attached_object.stock['internal'], EXTERNAL: @attached_object.stock['external'] }) %>
|
||||
<%= t('.body.stocks_state_html', **{ INTERNAL: @attached_object.stock['internal'], EXTERNAL: @attached_object.stock['external'] }) %>
|
||||
</p>
|
||||
<p>
|
||||
<%=link_to( t('.body.manage_stock'), "#{root_url}#!/admin/store/products/#{@attached_object.id}/edit", target: "_blank" )%>
|
||||
|
@ -1,7 +1,7 @@
|
||||
<%= render 'notifications_mailer/shared/hello', recipient: @recipient %>
|
||||
|
||||
<p>
|
||||
<%= t('.body.cancelled_training', {
|
||||
<%= t('.body.cancelled_training', **{
|
||||
TRAINING: @attached_object.trainings.first.name,
|
||||
DATE: I18n.l(@attached_object.start_at.to_date),
|
||||
START: I18n.l(@attached_object.start_at, format: :hour_minute),
|
||||
|
@ -6,7 +6,7 @@
|
||||
</p>
|
||||
|
||||
<p>
|
||||
<%= t('.body.user_of_group_html', { GROUP: @attached_object&.group&.name }) %>
|
||||
<%= t('.body.user_of_group_html', GROUP: @attached_object&.group&.name) %>
|
||||
</p>
|
||||
|
||||
<% if @attached_object.invoicing_profile.organization %>
|
||||
|
@ -2,7 +2,7 @@
|
||||
<%= render 'notifications_mailer/shared/hello', recipient: @recipient %>
|
||||
|
||||
<p><%= t('.body.new_account_imported', ID: @attached_object.id, PROVIDER: provider.name) %><br/>
|
||||
<%= t('.body.provider_uid', UID:@attached_object.uid) %></p>
|
||||
<%= t('.body.provider_uid', UID: @attached_object.uid) %></p>
|
||||
<% if provider.sso_fields.size > 1 %>
|
||||
<p><%= t('.body.known_information') %></p>
|
||||
<ul>
|
||||
|
@ -1,6 +1,6 @@
|
||||
<%= render 'notifications_mailer/shared/hello', recipient: @recipient %>
|
||||
|
||||
<%= t('.body.training_expired_html', {
|
||||
<%= t('.body.training_expired_html', **{
|
||||
TRAINING: @attached_object.name,
|
||||
MACHINES: @attached_object.machines.map(&:name).join(', '),
|
||||
DATE: I18n.l((DateTime.current - @attached_object.authorization_period.months).to_date),
|
||||
|
@ -1,7 +1,7 @@
|
||||
<%= render 'notifications_mailer/shared/hello', recipient: @recipient %>
|
||||
|
||||
<p>
|
||||
<%= t('.body.cancelled_training', {
|
||||
<%= t('.body.cancelled_training', **{
|
||||
TRAINING: @attached_object.reservation.reservable.name,
|
||||
DATE: I18n.l(@attached_object.start_at.to_date),
|
||||
START: I18n.l(@attached_object.start_at, format: :hour_minute),
|
||||
|
@ -1,6 +1,6 @@
|
||||
<%= render 'notifications_mailer/shared/hello', recipient: @recipient %>
|
||||
|
||||
<%= t('.body.training_invalidated_html', {
|
||||
<%= t('.body.training_invalidated_html', **{
|
||||
TRAINING: @attached_object.name,
|
||||
MACHINES: @attached_object.machines.map(&:name).join(', '),
|
||||
DATE: I18n.l((DateTime.current - @attached_object.authorization_period.months).to_date),
|
||||
|
Loading…
x
Reference in New Issue
Block a user