mirror of
https://github.com/scinote-eln/scinote-web.git
synced 2024-12-26 09:42:46 +08:00
Fix translation for Date/Date&Time [SCI-9561]
This commit is contained in:
parent
94e8a8d89f
commit
55ee531e23
1 changed files with 2 additions and 2 deletions
|
@ -4,7 +4,7 @@ class RepositoryItemDateNotification < BaseNotification
|
|||
def message
|
||||
unit = human_readable_unit(column.metadata['reminder_unit'], column.metadata['reminder_value'])
|
||||
I18n.t(
|
||||
'notifications.notification.item_date_reminder_html',
|
||||
'notifications.content.item_date_reminder.message_html',
|
||||
repository_row_name: subject.name,
|
||||
value: column.metadata['reminder_value'],
|
||||
units: unit
|
||||
|
@ -29,7 +29,7 @@ class RepositoryItemDateNotification < BaseNotification
|
|||
if params[:repository_date_time_value_id]
|
||||
RepositoryDateTimeValue.find(params[:repository_date_time_value_id]).update(notification_sent: true)
|
||||
elsif params[:repository_date_value_id]
|
||||
RepositoryDateVal7ue.find(params[:repository_date_value_id]).update(notification_sent: true)
|
||||
RepositoryDateValue.find(params[:repository_date_value_id]).update(notification_sent: true)
|
||||
end
|
||||
end
|
||||
|
||||
|
|
Loading…
Reference in a new issue