<div class="container">
<%= render partial: 'staffs/people/nav_tabs',
locals: { person: @person, tab: :person_comments } %>
<% @person_comments.each_with_index do |person_comment, index| %>
<% unless index.zero? %>
<hr class="my-0"/>
<% end %>
<div class="card border-light">
<div class="card-body">
<p class="card-text">
<%= person_comment.text %>
</p>
<small class="text-muted">
<%= localize person_comment.created_at, format: :long %>
<% if person_comment.account %>
•
<%= link_to person_comment.account.nickname,
person_comment.account %>
</small>
</div>
<div class="mt-2">
<%= simple_form_for [:staff, @person, @person_comment] do |f| %>
<div class="form-inputs">
<%= f.input :text, label: false %>
<div class="form-actions">
<%= f.button :submit %>