<% siblings = notification.json_data["aggregated_siblings"].length %>
<% if siblings == 1 %> <% first_notification = notification.json_data["aggregated_siblings"].first %> <% cache "activity-profile-pic-#{first_notification['id']}-#{first_notification['profile_image_90']}" do %> " class="crayons-avatar crayons-avatar--l <% if notification.json_data["aggregated_siblings"].length == 1 %>m:crayons-avatar--xl<% end %> shrink-0" tabindex="-1" aria-hidden="true"> " class="crayons-avatar__image" alt="link to <%= first_notification["username"] %>'s profile" width="48" height="48"> <% end %>
<% cache "activity-follow-button-#{first_notification['path']}-#{first_notification['name']}" do %>

<%= t("views.notifications.follow.single_html", name: link_to(first_notification["name"], first_notification["path"], class: "crayons-link fw-bold")) %>

<%= follow_button(notification.decorate.mocked_object("user"), "follow-back") %>
<% end %>
<% else %> <% json_data_array = notification["json_data"]["aggregated_siblings"] %>
<% notification.json_data["aggregated_siblings"][0..10].each do |sibling| %> " class="crayons-avatar crayons-avatar--l shrink-0 mx-1" <% if sibling["id"] == json_data_array.first["id"] %> tabindex="-1" aria-hidden="true"<% end %>> " class="crayons-avatar__image" alt="link to <%= sibling["name"] %>'s profile" width="32" height="32" loading="lazy" /> <% end %>

<% if siblings == 2 %> <%= t("views.notifications.follow.and_html", first: link_to(json_data_array.first["name"], json_data_array.first["path"], class: "crayons-link fw-bold"), second: link_to(json_data_array.second["name"], json_data_array.second["path"], class: "crayons-link fw-bold")) %> <% else %> <%= t("views.notifications.follow.and_other_html", first: link_to(json_data_array.first["name"], json_data_array.first["path"], class: "crayons-link fw-bold"), others: t("views.notifications.follow.others", count: siblings - 1), count: siblings) %> <% end %>

<% end %>