diff --git a/app/helpers/notifications_helper.rb b/app/helpers/notifications_helper.rb index f09153cff..029c328bb 100644 --- a/app/helpers/notifications_helper.rb +++ b/app/helpers/notifications_helper.rb @@ -86,6 +86,6 @@ module NotificationsHelper end def card_notification_title(card) - card.title.presence || "Card #{card.id}" + card.title.presence || "Card #{card.number}" end end diff --git a/app/models/comment/promptable.rb b/app/models/comment/promptable.rb index 10b49c247..80488f76a 100644 --- a/app/models/comment/promptable.rb +++ b/app/models/comment/promptable.rb @@ -16,7 +16,7 @@ module Comment::Promptable #### Metadata * Id: #{id} - * Card id: #{card.id} + * Card id: #{card.number} * Card title: #{card.title} * Created by: #{creator.name}} * Created at: #{created_at}} diff --git a/app/models/notification_pusher.rb b/app/models/notification_pusher.rb index d018c30a6..acb5603a1 100644 --- a/app/models/notification_pusher.rb +++ b/app/models/notification_pusher.rb @@ -102,7 +102,7 @@ class NotificationPusher end def card_notification_title(card) - card.title.presence || "Card #{card.id}" + card.title.presence || "Card #{card.number}" end def comment_notification_body(event) diff --git a/app/views/mailers/notification/bundle_mailer/notification.html.erb b/app/views/mailers/notification/bundle_mailer/notification.html.erb index 956baea91..616e49a8c 100644 --- a/app/views/mailers/notification/bundle_mailer/notification.html.erb +++ b/app/views/mailers/notification/bundle_mailer/notification.html.erb @@ -5,7 +5,7 @@ <% @notifications.group_by(&:card).each do |card, notifications| %>

<%= card.board.name %>

- <%= link_to "##{ card.id } #{ card.title }", card, class: "card__title" %> + <%= link_to "##{ card.number } #{ card.title }", card, class: "card__title" %> <%= render partial: "notification/bundle_mailer/notification", collection: notifications, as: :notification %> <% end %> diff --git a/app/views/mailers/notification/bundle_mailer/notification.text.erb b/app/views/mailers/notification/bundle_mailer/notification.text.erb index 9ea24e60b..0cd720f94 100644 --- a/app/views/mailers/notification/bundle_mailer/notification.text.erb +++ b/app/views/mailers/notification/bundle_mailer/notification.text.erb @@ -5,7 +5,7 @@ You have <%= pluralize @notifications.count, "new notification" %>. -------------------------------------------------------------------------------- <%= card.board.name %> -<%= "##{ card.id } #{ card.title }" %> +<%= "##{ card.number } #{ card.title }" %> -------------------------------------------------------------------------------- diff --git a/app/views/notifications/notification/_header.html.erb b/app/views/notifications/notification/_header.html.erb index de3432354..85261284e 100644 --- a/app/views/notifications/notification/_header.html.erb +++ b/app/views/notifications/notification/_header.html.erb @@ -2,7 +2,7 @@
Card number - <%= notification.card.id %> + <%= notification.card.number %> <%= notification.card.board.name %>