2022-11-29 04:22:25 +00:00
|
|
|
% layout 'default';
|
2022-09-21 01:16:42 +00:00
|
|
|
% title "Remark #$remark->{'id'}";
|
2022-09-03 02:45:41 +00:00
|
|
|
<h2><%= title %></h2>
|
2023-05-10 00:07:28 +00:00
|
|
|
<main class="remarks">
|
2022-09-03 02:45:41 +00:00
|
|
|
<article class="remark">
|
2022-09-21 01:16:42 +00:00
|
|
|
<h4 class="date"><%= $remark->{'date'} %></h4>
|
|
|
|
<h5 class="author"><%= $remark->{'author'} %></h5>
|
2023-05-04 01:05:57 +00:00
|
|
|
<div class="body">
|
|
|
|
<%== markdown $remark->{'body'} =%>
|
|
|
|
</div>
|
2023-05-10 00:07:28 +00:00
|
|
|
<nav>
|
|
|
|
<%= link_to Thread => single_thread => {thread_id => $remark->{'thread_id'}} %>
|
|
|
|
<%= link_to Remark => post_remark => {thread_id => $remark->{'thread_id'}} %>
|
|
|
|
<span class="flag">
|
|
|
|
<%= link_to Flag => flag_remark => {remark_id => $remark->{'id'}} %>
|
|
|
|
</span>
|
|
|
|
</nav>
|
|
|
|
<% if (is_mod) { =%>
|
|
|
|
<nav>
|
|
|
|
<%= link_to Hide => hide_remark => {remark_id => $remark->{'id'}} %>
|
|
|
|
<%= link_to Unhide => unhide_remark => {remark_id => $remark->{'id'}} %>
|
|
|
|
<%= link_to Unflag => unflag_remark => {remark_id => $remark->{'id'}} %>
|
|
|
|
</nav>
|
|
|
|
<% } =%>
|
2022-09-03 02:45:41 +00:00
|
|
|
</article>
|
2023-05-10 00:07:28 +00:00
|
|
|
</main>
|