21 lines
960 B
Plaintext
21 lines
960 B
Plaintext
<% if comment.is_a?(Boost) %>
|
|
<div class="boost flex-inline align-start gap fill-white border-radius center position-relative" id="<%= dom_id(comment) %>">
|
|
<%= comment.creator.name %> + 1
|
|
</div>
|
|
<% else %>
|
|
<div class="comment flex align-start gap fill-shade border-radius full-width" id="<%= dom_id(comment) %>">
|
|
<span class="avatar fill-black txt-reversed flex-item-no-shrink"><strong><%= comment.creator.initials %></strong></span>
|
|
<div class="flex flex-column full-width">
|
|
<div class="flex align-center gap-half">
|
|
<strong><%= comment.creator.name %></strong>
|
|
<%= link_to splat_path(@splat, anchor: "comment_#{comment.id}"), class: "txt-undecorated" do %>
|
|
<time class="txt-subtle"><%= comment.created_at.strftime("%b %d").html_safe %></time>
|
|
<% end %>
|
|
</div>
|
|
<div class="comment__body txt-align-start">
|
|
<%= simple_format comment.body %>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<% end %>
|