<%# locals: (changeset:, show_num_changes: true, show_num_comments: true) %>
<%= yield %> <% if show_num_changes %> <% num_changes = changeset.num_changes %> <%= tag.span :class => ["d-flex align-items-baseline gap-1", { "opacity-50" => num_changes.zero? }], :title => t(".changes", :count => num_changes) do %> <%= num_changes %> <% end %> <% end %> <% if show_num_comments %> <% num_comments = changeset.comments.length %> <%= tag.span :class => ["changeset_num_comments d-flex align-items-baseline gap-1 justify-content-end", { "opacity-50" => num_comments.zero? }], :title => t(".comments", :count => num_comments) do %> <%= num_comments %> <% if num_comments.zero? %> <% else %> <% end %> <% end %> <% end %>