Skip to content

OpenProject is the leading open source project management software for product, project and portfolio management. A powerful Jira alternative with agile planning, issue tracking, roadmaps, Gantt charts, time tracking, collaboration features, and more. Available on premises or in the cloud. ⭐ Star us on GitHub

* Show timestamp instead of relative time ago in the daily mail * Change url of settings button

Henriette Darge4be8c1cbd7f3
diff --git a/app/helpers/mail_digest_helper.rb b/app/helpers/mail_digest_helper.rb
index 9059d7e0ce3..e1151a59820 100644
--- a/app/helpers/mail_digest_helper.rb
+++ b/app/helpers/mail_digest_helper.rb
@@ -63,12 +63,12 @@ module MailDigestHelper
sanitize(
"#{I18n.t(:"mail.digests.work_packages.#{value}")} #{I18n.t(:"mail.digests.work_packages.#{value}_at",
user: user,
- timestamp: time_ago_in_words(journal.created_at))}"
+ timestamp: journal.created_at.strftime(I18n.t(:'time.formats.time')))}"
)
else
sanitize(I18n.t(:"mail.digests.work_packages.#{value}_at",
user: user,
- timestamp: time_ago_in_words(journal.created_at)))
+ timestamp: journal.created_at.strftime(I18n.t(:'time.formats.time'))))
end
end
end
diff --git a/app/helpers/mail_notification_helper.rb b/app/helpers/mail_notification_helper.rb
index ca226f83b36..fafa1f3a664 100644
--- a/app/helpers/mail_notification_helper.rb
+++ b/app/helpers/mail_notification_helper.rb
@@ -32,7 +32,7 @@ module MailNotificationHelper
include ::ColorsHelper
def logo_tag(**options)
- current_logo = CustomStyle.current.logo
+ current_logo = CustomStyle.current.logo unless CustomStyle.current.nil?
if current_logo.present?
logo = File.read(current_logo.local_file)
diff --git a/app/views/mailer/_notification_settings_button.html.erb b/app/views/mailer/_notification_settings_button.html.erb
index a3d01ab38a3..d3b6f17ddd7 100644
--- a/app/views/mailer/_notification_settings_button.html.erb
+++ b/app/views/mailer/_notification_settings_button.html.erb
@@ -1,4 +1,4 @@
-<a href="<%= my_notifications_url %>"
+<a href="<%= my_reminders_url %>"
target="_blank"
style="padding: 8px 12px; color: #333333; border: 1px solid #878787; border-radius: 16px; text-decoration: none; white-space: nowrap;">
<%= I18n.t(:'mail.notification.settings') %>
diff --git a/config/locales/en.yml b/config/locales/en.yml
index 56c997581b9..092e2cd91b5 100644
--- a/config/locales/en.yml
+++ b/config/locales/en.yml
@@ -1971,24 +1971,24 @@ en:
work_packages:
comment_added: '<b>Comment</b> added'
created: 'Created'
- created_at: '%{timestamp} ago by %{user} '
+ created_at: 'at %{timestamp} by %{user} '
login_to_see_all: 'Log in to see all notifications.'
mentioned: 'You have been <b>mentioned in a comment</b>'
more_to_see_singular: 'There is 1 more work package with notifications.'
more_to_see_plural: 'There are %{number} more work packages with notifications.'
reason:
- watched: 'watched'
- involved: 'assignee or responsible'
- mentioned: 'mentioned'
+ watched: 'Watched'
+ involved: 'Assigned or responsible'
+ mentioned: 'Mentioned'
subscribed: 'all'
prefix: 'Received because of the notification setting: %{reason}'
see_all: 'See all'
subject: '%{instance_name} - %{notifications} unread notification(s) in %{work_packages} work package(s)'
updated: 'Updated'
- updated_at: '%{timestamp} ago by %{user}'
+ updated_at: 'at %{timestamp} by %{user}'
logo_alt_text: 'Logo'
notification:
- center: 'Notification center'
+ center: 'To notification center'
settings: 'Change email settings'
salutation: 'Hey %{user}!'