b08326ccbe
* main: (48 commits) Improve layout and truncation This is annoying Fix summary Remove index columns Same treatment for the events index New menu filters and navigates Don't test for _Added by_ events Indention @collection is always available when card scoped Style Remove check for _Added by..._ line The placeholder attribute is on the `house-md` element Duh, no before destroy commit, but this is still not right! No long transactions! Don't display published event in threads But feels more essentially part of the User, so list first Not related to the other two Missing controller Style Errant `bubbles` => `cards` replacement ... # Conflicts: # app/models/card.rb # app/models/user.rb # db/schema.rb # db/schema_cache.yml
33 lines
1.5 KiB
Plaintext
33 lines
1.5 KiB
Plaintext
<% cache comment do %>
|
|
<%= turbo_frame_tag comment do %>
|
|
<div class="comment flex align-start full-width" data-creator-id="<%= comment.creator_id %>" data-created-by-current-user-target="creation">
|
|
<figure class="comment__avatar flex-item-no-shrink" aria-hidden="true">
|
|
<%= avatar_tag comment.creator, hidden_for_screen_reader: true %>
|
|
</figure>
|
|
|
|
<div class="comment__content flex flex-column flex-item-grow full-width">
|
|
<div class="comment__author flex align-center gap-half">
|
|
<strong>
|
|
<%= link_to comment.creator.name, comment.creator, class: "txt-ink btn btn--plain fill-transparent", data: { turbo_frame: "_top" } %>
|
|
</strong>
|
|
|
|
<%= link_to comment, class: "txt-undecorated txt-uppercase" do %>
|
|
<%= local_datetime_tag comment.created_at, style: :shortdate, class: "txt-ink translucent" %>
|
|
<% end %>
|
|
|
|
<%= link_to edit_card_comment_path(comment.card, comment),
|
|
class: "comment__edit btn btn--plain txt-xx-small fill-transparent translucent flex-item-justify-end" do %>
|
|
<%= icon_tag "menu-dots-horizontal" %> <span class="for-screen-reader">Edit this comment</span>
|
|
<% end %>
|
|
</div>
|
|
|
|
<div class="comment__body markdown-content txt-align-start">
|
|
<%= sanitize comment.body_html %>
|
|
</div>
|
|
|
|
<%= render "cards/comments/reactions/reactions", comment: comment %>
|
|
</div>
|
|
</div>
|
|
<% end %>
|
|
<% end %>
|