Merge pull request #6794 from G-Chubinidze/gc_SCI_9843

Incomplete/missing text in notification emails [SCI-9843]
This commit is contained in:
Martin Artnik 2023-12-11 13:39:15 +01:00 committed by GitHub
commit 8423f4f38f
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 16 additions and 3 deletions

View file

@ -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

View file

@ -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

View file

@ -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