Do the admin/mod templates
This commit is contained in:
parent
a2004aba7b
commit
fe2089e525
@ -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()`?
|
||||||
|
|
||||||
|
@ -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'}},
|
||||||
|
@ -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'}},
|
||||||
|
Loading…
x
Reference in New Issue
Block a user