PostText/templates/remark/by_id.html.ep

34 lines
1.2 KiB
Plaintext
Raw Normal View History

% layout 'default';
2022-09-20 21:16:42 -04:00
% title "Remark #$remark->{'id'}";
<h2 class="page-title"><%= title %></h2>
<main class="pager">
<article class="post">
<h4 class="post--remark__date">
<%= $remark->{'date'} %>
<span class="post__id">#<%= $remark->{'id'} %></span>
</h4>
<h5 class="post__author"><%= $remark->{'author'} %></h5>
<div class="post__body">
<%== markdown $remark->{'body'} =%>
</div>
<nav class="post__nav">
2023-05-20 23:43:32 -04:00
<%= link_to Thread => single_thread =>
{thread_id => $remark->{'thread_id'}}, (class => 'click') %>
<%= link_to Remark => post_remark =>
{thread_id => $remark->{'thread_id'}}, (class => 'click') %>
<%= link_to Flag => flag_remark => {remark_id => $remark->{'id'}},
(class => 'click') %>
</nav>
<% if (is_mod) { =%>
<nav class="post__nav">
2023-05-20 23:43:32 -04:00
<%= link_to Hide => hide_remark => {remark_id => $remark->{'id'}},
(class => 'click') %>
<%= link_to Unhide => unhide_remark => {remark_id => $remark->{'id'}},
(class => 'click') %>
<%= link_to Unflag => unflag_remark => {remark_id => $remark->{'id'}},
(class => 'click') %>
</nav>
<% } =%>
2022-09-02 22:45:41 -04:00
</article>
</main>