From fe2089e525c06bb909bdcf4209c1876cbd67e7b9 Mon Sep 17 00:00:00 2001 From: swaggboi Date: Sat, 12 Apr 2025 12:15:35 -0400 Subject: [PATCH] Do the admin/mod templates --- README.md | 1 - templates/moderator/remark_by_id.html.ep | 4 ++++ templates/moderator/thread_by_id.html.ep | 4 ++++ 3 files changed, 8 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 5d60a7b..0846d05 100644 --- a/README.md +++ b/README.md @@ -61,7 +61,6 @@ tests locally: ## TODOs -- Check mod/admin templates for if-markdown - Fix preview tests - Do I need `SUM` for `by_id()`? diff --git a/templates/moderator/remark_by_id.html.ep b/templates/moderator/remark_by_id.html.ep index 253f9de..f4485b7 100644 --- a/templates/moderator/remark_by_id.html.ep +++ b/templates/moderator/remark_by_id.html.ep @@ -10,7 +10,11 @@
<%= $remark->{'author'} %>
+ <% if ($remark->{'markdown'}) { =%> <%== markdown $remark->{'body'} =%> + <% } else { =%> + <%= $remark->{'body'} %> + <% } =%>