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

View file

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