PostText/templates/thread_id.html.ep

25 lines
771 B
Plaintext
Raw Normal View History

2022-08-19 23:11:20 -04:00
% layout 'main';
% title "View Thread - #$thread->{'id'}";
2022-08-19 23:11:20 -04:00
<h2><%= title %></h2>
2022-08-20 12:42:04 -04:00
<% if (my $thread_body = %$thread{'body'}) { =%>
<div class="threads">
2022-08-19 23:11:20 -04:00
<article class="thread">
<h3 class="title"><%= %$thread{'title'} %></h3>
<h4 class="date"><%= %$thread{'date'} %></h4>
<h5 class="author"><%= %$thread{'author'} %></h5>
2022-08-20 12:42:04 -04:00
<p class="body"><%= $thread_body %></p>
2022-08-19 23:11:20 -04:00
</article>
2022-08-20 12:42:04 -04:00
</div>
<% } =%>
<% if (my $first_reply = @$replies[0]) { =%>
<div class="replies">
<% for my $reply (@$replies) { =%>
<article class="reply">
<h4 class="date"><%= %$reply{'date'} %></h4>
<h5 class="author"><%= %$reply{'author'} %></h5>
<p class="body"><%= %$reply{'body'} %></p>
</article>
<% } =%>
</div>
<% } =%>