PostText/templates/remark/by_id.html.ep

25 lines
823 B
Plaintext
Raw Normal View History

% 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>
<div class="remarks">
<article class="remark">
2022-09-21 05:28:50 +00:00
<nav class="id">#<%= $remark->{'id'} %></nav>
2022-09-21 01:16:42 +00:00
<h4 class="date"><%= $remark->{'date'} %></h4>
<h5 class="author"><%= $remark->{'author'} %></h5>
<div class="body">
<%== markdown $remark->{'body'} =%>
</div>
2022-09-03 02:45:41 +00:00
</article>
</div>
<nav>
2022-10-01 22:00:23 +00:00
<%= link_to Thread => single_thread => {thread_id => $remark->{'thread_id'}} %>
2022-10-14 04:04:17 +00:00
<%= link_to Flag => flag_remark => {remark_id => $remark->{'id'} } %>
2022-09-03 02:45:41 +00:00
</nav>
2022-12-08 19:29:55 +00:00
<% 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>
<% } =%>