Rename remark_count to remark_tally
This commit is contained in:
parent
91b6857607
commit
06c3476c22
|
@ -59,7 +59,6 @@ Run the tests locally (against development environment):
|
||||||
## TODOs
|
## TODOs
|
||||||
|
|
||||||
1. Show `bump_tally` and `remark_count` in single thread view
|
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. Redirect mod/admin back to hidden/flagged where it makes sense
|
||||||
1. CSS
|
1. CSS
|
||||||
1. "All new posts flagged" mode (require approval for new posts)
|
1. "All new posts flagged" mode (require approval for new posts)
|
||||||
|
|
|
@ -37,7 +37,7 @@ sub by_page($self, $this_page = 1) {
|
||||||
t.thread_author AS author,
|
t.thread_author AS author,
|
||||||
t.thread_title AS title,
|
t.thread_title AS title,
|
||||||
t.thread_body AS body,
|
t.thread_body AS body,
|
||||||
COUNT(r.*) AS remark_count,
|
COUNT(r.*) AS remark_tally,
|
||||||
t.bump_tally AS bump_tally
|
t.bump_tally AS bump_tally
|
||||||
FROM threads AS t
|
FROM threads AS t
|
||||||
LEFT JOIN remarks AS r
|
LEFT JOIN remarks AS r
|
||||||
|
|
|
@ -22,7 +22,7 @@
|
||||||
<%= 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_count'} %> remarks)\
|
(<%= $thread->{'remark_tally'} %> remarks)\
|
||||||
<% end =%>
|
<% end =%>
|
||||||
<%= link_to Bump => bump_thread => {thread_id => $thread->{'id'}} %>
|
<%= link_to Bump => bump_thread => {thread_id => $thread->{'id'}} %>
|
||||||
(<%= $thread->{'bump_tally'} %> bumps)
|
(<%= $thread->{'bump_tally'} %> bumps)
|
||||||
|
|
Loading…
Reference in a new issue