Link to the event/notification source directly

E.g: link to comments
This commit is contained in:
Jorge Manrubia
2025-08-27 11:46:48 +02:00
parent 30d8848057
commit 75a830e9b3
3 changed files with 3 additions and 3 deletions
@@ -1,7 +1,7 @@
<% event = notification.source %>
<h3 class="event__title">
<%= link_to event_notification_title(event), collection_card_url(notification.card.collection, notification.card) %>
<%= link_to event_notification_title(event), notification.source %>
</h3>
<p class="event__details">
@@ -1,7 +1,7 @@
<% mention = notification.source %>
<h3 class="event__title">
<%= link_to "#{mention.mentioner.first_name} mentioned you", collection_card_url(notification.card.collection, notification.card) %>
<%= link_to "#{mention.mentioner.first_name} mentioned you", event.source %>
</h3>
<p class="event__details">
+1 -1
View File
@@ -173,7 +173,7 @@ Rails.application.routes.draw do
end
resolve "Event" do |event, options|
polymorphic_path(event.target, options)
polymorphic_path(event.eventable, options)
end
get "up", to: "rails/health#show", as: :rails_health_check