2022-11-29 04:22:25 +00:00
|
|
|
% layout 'default';
|
2023-05-28 06:07:09 +00:00
|
|
|
% title my $remark_id = $remark->{'id'} ? "Remark #$remark_id" : '?';
|
2023-05-20 03:07:28 +00:00
|
|
|
<h2 class="page-title"><%= title %></h2>
|
2023-05-29 04:14:47 +00:00
|
|
|
<% if (keys %{$remark}) { =%>
|
2023-06-04 21:47:36 +00:00
|
|
|
<% content_for open_graph => begin %>
|
|
|
|
<meta property="og:type" content="article">
|
|
|
|
<meta property="og:title"
|
|
|
|
content="Thread #<%= $remark->{'thread_id'} %>, <%= title %>">
|
|
|
|
<meta property="og:description"
|
|
|
|
content="<%= truncate_text $remark->{'body'} %>">
|
|
|
|
<% end %>
|
2023-06-07 19:43:45 +00:00
|
|
|
<% content_for twitter_card => begin %>
|
|
|
|
<meta name="twitter:title"
|
|
|
|
content="Thread #<%= $remark->{'thread_id'} %>, <%= title %>">
|
|
|
|
<meta name="twitter:description"
|
|
|
|
content="<%= truncate_text $remark->{'body'} %>">
|
|
|
|
<% end %>
|
2023-05-20 03:07:28 +00:00
|
|
|
<main class="pager">
|
|
|
|
<article class="post">
|
2023-05-21 15:46:29 +00:00
|
|
|
<h4 class="post__title">
|
2023-05-20 03:07:28 +00:00
|
|
|
<%= $remark->{'date'} %>
|
2023-05-29 04:14:47 +00:00
|
|
|
<span class="post__id">#<%= $remark->{'id'} %></span>
|
2023-05-20 03:07:28 +00:00
|
|
|
</h4>
|
|
|
|
<h5 class="post__author"><%= $remark->{'author'} %></h5>
|
|
|
|
<div class="post__body">
|
2023-05-04 01:05:57 +00:00
|
|
|
<%== markdown $remark->{'body'} =%>
|
|
|
|
</div>
|
2023-05-20 03:07:28 +00:00
|
|
|
<nav class="post__nav">
|
2023-05-21 03:43:32 +00: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') %>
|
2023-05-10 00:07:28 +00:00
|
|
|
</nav>
|
|
|
|
<% if (is_mod) { =%>
|
2023-05-20 03:07:28 +00:00
|
|
|
<nav class="post__nav">
|
2023-05-21 03:43:32 +00: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') %>
|
2023-05-10 00:07:28 +00:00
|
|
|
</nav>
|
|
|
|
<% } =%>
|
2022-09-03 02:45:41 +00:00
|
|
|
</article>
|
2023-05-10 00:07:28 +00:00
|
|
|
</main>
|
2023-05-28 06:07:09 +00:00
|
|
|
<% } =%>
|