Do the admin/mod templates

This commit is contained in:
swagg boi 2025-04-12 12:15:35 -04:00
parent a2004aba7b
commit fe2089e525
3 changed files with 8 additions and 1 deletions

View File

@ -61,7 +61,6 @@ tests locally:
## TODOs ## TODOs
- Check mod/admin templates for if-markdown
- Fix preview tests - Fix preview tests
- Do I need `SUM` for `by_id()`? - Do I need `SUM` for `by_id()`?

View File

@ -10,7 +10,11 @@
</h4> </h4>
<h5 class="post__author"><%= $remark->{'author'} %></h5> <h5 class="post__author"><%= $remark->{'author'} %></h5>
<div class="post__body"> <div class="post__body">
<% if ($remark->{'markdown'}) { =%>
<%== markdown $remark->{'body'} =%> <%== markdown $remark->{'body'} =%>
<% } else { =%>
<span class="plain-text"><%= $remark->{'body'} %></span>
<% } =%>
</div> </div>
<nav class="post__nav"> <nav class="post__nav">
<%= link_to Hide => hide_remark => {remark_id => $remark->{'id'}}, <%= link_to Hide => hide_remark => {remark_id => $remark->{'id'}},

View File

@ -11,7 +11,11 @@
<h4 class="post__date"><%= $thread->{'date'} %></h4> <h4 class="post__date"><%= $thread->{'date'} %></h4>
<h5 class="post__author"><%= $thread->{'author'} %></h5> <h5 class="post__author"><%= $thread->{'author'} %></h5>
<div class="post__body"> <div class="post__body">
<% if ($thread->{'markdown'}) { =%>
<%== markdown $thread->{'body'} =%> <%== markdown $thread->{'body'} =%>
<% } else { =%>
<span class="plain-text"><%= $thread->{'body'} %></span>
<% } =%>
</div> </div>
<nav class="post__nav"> <nav class="post__nav">
<%= link_to Hide => hide_thread => {thread_id => $thread->{'id'}}, <%= link_to Hide => hide_thread => {thread_id => $thread->{'id'}},