Rename remark_count to remark_tally

This commit is contained in:
swag 2023-05-12 17:45:19 -04:00
parent 91b6857607
commit 06c3476c22
3 changed files with 2 additions and 3 deletions

View File

@ -59,7 +59,6 @@ Run the tests locally (against development environment):
## TODOs
1. Show `bump_tally` and `remark_count` in single thread view
1. Rename `remark_count` to `remark_tally`
1. Redirect mod/admin back to hidden/flagged where it makes sense
1. CSS
1. "All new posts flagged" mode (require approval for new posts)

View File

@ -37,7 +37,7 @@ sub by_page($self, $this_page = 1) {
t.thread_author AS author,
t.thread_title AS title,
t.thread_body AS body,
COUNT(r.*) AS remark_count,
COUNT(r.*) AS remark_tally,
t.bump_tally AS bump_tally
FROM threads AS t
LEFT JOIN remarks AS r

View File

@ -22,7 +22,7 @@
<%= link_to Remark => post_remark => {thread_id => $thread->{'id'}} %>
<%= link_to url_for(single_thread => {thread_id => $thread->{'id'}})
->fragment('remarks'), begin %>
(<%= $thread->{'remark_count'} %> remarks)\
(<%= $thread->{'remark_tally'} %> remarks)\
<% end =%>
<%= link_to Bump => bump_thread => {thread_id => $thread->{'id'}} %>
(<%= $thread->{'bump_tally'} %> bumps)