mirror of
https://github.com/scinote-eln/scinote-web.git
synced 2024-11-10 17:36:33 +08:00
Merge pull request #6794 from G-Chubinidze/gc_SCI_9843
Incomplete/missing text in notification emails [SCI-9843]
This commit is contained in:
commit
8423f4f38f
3 changed files with 16 additions and 3 deletions
|
@ -14,7 +14,11 @@ class LowStockNotification < BaseNotification
|
|||
end
|
||||
|
||||
def title
|
||||
I18n.t('notifications.content.item_low_stock_reminder.title_html')
|
||||
I18n.t(
|
||||
'notifications.content.item_low_stock_reminder.message_html',
|
||||
repository_row_name: subject.name,
|
||||
repository: repository.name
|
||||
)
|
||||
end
|
||||
|
||||
def subject
|
||||
|
|
|
@ -16,7 +16,13 @@ class RepositoryItemDateNotification < BaseNotification
|
|||
end
|
||||
|
||||
def title
|
||||
I18n.t('notifications.content.item_date_reminder.title_html')
|
||||
unit = human_readable_unit(column.metadata['reminder_unit'], column.metadata['reminder_value'])
|
||||
I18n.t(
|
||||
'notifications.content.item_date_reminder.message_html',
|
||||
repository_row_name: subject.name,
|
||||
value: column.metadata['reminder_value'],
|
||||
units: unit
|
||||
)
|
||||
end
|
||||
|
||||
def subject
|
||||
|
|
|
@ -13,7 +13,10 @@ class TaskDueDateNotification < BaseNotification
|
|||
end
|
||||
|
||||
def title
|
||||
I18n.t('notifications.content.my_module_due_date_reminder.title_html')
|
||||
I18n.t(
|
||||
'notifications.content.my_module_due_date_reminder.message_html',
|
||||
my_module_name: subject.name
|
||||
)
|
||||
end
|
||||
|
||||
def subject
|
||||
|
|
Loading…
Reference in a new issue