Files
fizzy/app/views/bubbles/_messages.html.erb
T
2025-03-19 16:33:03 -05:00

23 lines
1.1 KiB
Plaintext

<%= messages_tag(bubble) do %>
<%# Template Dependency: comments/comment %>
<%# Template Dependency: event_summaries/event_summary %>
<%#= render bubble.messages, cached: true %>
<div class="comments__column">
<%= render bubble.messages.comments %>
<%= render "comments/new", bubble: bubble, cached: true %>
<div class="flex flex-column margin-block-start-double txt-align-start" style="margin-inline-start: calc(var(--avatar-size) + var(--inline-space));">
<strong class="txt-uppercase">Subscribers</strong>
<p class="margin-none-block-start margin-block-end-half"><%= pluralize(@bubble.watchers.count, "person") %> will be notified when someone comments on this.</p>
<div class="flex align-center flex-wrap gap-half max-width" style="font-size: 0.8em;">
<%= render partial: "bubbles/watches/watcher", collection: @bubble.watchers.sorted_with_user_first(Current.user) %>
</div>
</div>
</div>
<div class="events__column">
<%= render bubble.messages.event_summaries, bubble: bubble, cached: true %>
</div>
<% end %>