* Created separate comments page * Optimised code for single comment and multiple comments * Indifual comments poage added * Minor header change * Created show method * Full implementation with eager loading error * Temporarily suppress Bullet from Admin::CommentsController * Minor fixes * Minor fixes * Added table * Added french translations * Added reaction stats / summary * Tests added fore empty comments * Added seed data and few more tests * Updated test * Added model tests for comment and article * Nit test fix * Applied changes as per PJ's review --------- Co-authored-by: Joshua Wehner <joshua@forem.com>
18 lines
1.1 KiB
Text
18 lines
1.1 KiB
Text
<div class="flex justify-between items-center">
|
|
<div class="flex items-center">
|
|
<div class="crayons-card crayons-card--secondary p-3 mr-7">
|
|
<%= crayons_icon_tag("twemoji/#{quality_reaction.category == 'thumbsup' ? 'thumb-up' : 'thumb-down'}", native: true, title: t("views.moderations.actions.#{quality_reaction.category == 'thumbsup' ? 'thumb_up' : 'thumb_down'}"), width: 24, height: 24) %>
|
|
</div>
|
|
<div class="p-0">
|
|
<p class="crayons-subtitle-3"><%= quality_reaction.user.name %></p>
|
|
<time datetime="<%= quality_reaction.updated_at&.strftime("%Y-%m-%dT%H:%M:%S%z") %>" class="color-secondary fs-s shrink-0" title="<%= l(quality_reaction.updated_at, format: :admin_user) if quality_reaction.created_at %>">
|
|
<%= l(quality_reaction.updated_at, format: :long) %>
|
|
</time>
|
|
</div>
|
|
</div>
|
|
|
|
<span class="crayons-card crayons-card--secondary px-3 py-1 ml-3 flex gap-2 items-center" title="Score affected by particular quality reaction">
|
|
<%= crayons_icon_tag("analytics", native: true, width: 16, height: 16) %>
|
|
<span class="fs-s fw-medium lh-base"><%= quality_reaction.points %></span>
|
|
</span>
|
|
</div>
|