Template clean-up

This commit is contained in:
swagg boi 2023-05-12 22:43:23 -04:00
parent c0895274b2
commit 212521e905
2 changed files with 12 additions and 7 deletions

View file

@ -10,10 +10,14 @@
<%== markdown $thread->{'body'} =%>
</div>
<nav>
<%= link_to Remark => post_remark => {thread_id => $thread->{'id'}} %>
<%= link_to Bump => bump_thread => {thread_id => $thread->{'id'}} %>
<%= link_to post_remark => {thread_id => $thread->{'id'}}, begin %>
Remark (<%= $thread->{'remark_tally'} %> remarks)
<% end %>
<%= link_to bump_thread => {thread_id => $thread->{'id'}}, begin %>
Bump (<%= $thread->{'bump_tally'} %> bumps)
<% end %>
<span class="flag">
<%= link_to Flag => flag_thread => {thread_id => $thread->{'id'}} %>
<%= link_to Flag => flag_thread => {thread_id => $thread->{'id'}} %>
</span>
</nav>
<% if (is_mod) { =%>

View file

@ -22,10 +22,11 @@
<%= link_to Remark => post_remark => {thread_id => $thread->{'id'}} %>
<%= link_to url_for(single_thread => {thread_id => $thread->{'id'}})
->fragment('remarks'), begin %>
(<%= $thread->{'remark_tally'} %> remarks)\
<% end =%>
<%= link_to Bump => bump_thread => {thread_id => $thread->{'id'}} %>
(<%= $thread->{'bump_tally'} %> bumps)
(<%= $thread->{'remark_tally'} %> remarks)
<% end %>
<%= link_to bump_thread => {thread_id => $thread->{'id'}}, begin %>
Bump (<%= $thread->{'bump_tally'} %> bumps)
<% end %>
<span class="flag">
<%= link_to Flag => flag_thread => {thread_id => $thread->{'id'}} %>
</span>