diff --git a/app/views/notifications/_notification.html.erb b/app/views/notifications/_notification.html.erb index b945960b8..40d413c2b 100644 --- a/app/views/notifications/_notification.html.erb +++ b/app/views/notifications/_notification.html.erb @@ -2,7 +2,7 @@ <%= notification_tag notification do %>
- <%= render "notifications/notification/#{notification.source_type.underscore}/header", notification: notification %> + <%= render "notifications/notification/header", notification: notification %>
diff --git a/app/views/notifications/notification/event/_header.html.erb b/app/views/notifications/notification/_header.html.erb similarity index 100% rename from app/views/notifications/notification/event/_header.html.erb rename to app/views/notifications/notification/_header.html.erb diff --git a/app/views/notifications/notification/mention/_header.html.erb b/app/views/notifications/notification/mention/_header.html.erb deleted file mode 100644 index 8030724ec..000000000 --- a/app/views/notifications/notification/mention/_header.html.erb +++ /dev/null @@ -1,22 +0,0 @@ -
- - Card number - <%= notification.card.id %> - - - <%= notification.card.board.name %> - -
- -
- <%= notification.creator.familiar_name %> -
- -
- <%= local_datetime_tag(notification.created_at, style: :timeordate) %> -
- -
- <%= notification_toggle_read_button(notification) %> -
-