Commit 53cd7c1b authored by Randall Leeds's avatar Randall Leeds

include reply count on heatmap tabs

fixes #158
parent 34634676
......@@ -216,7 +216,15 @@ class Annotator.Plugin.Heatmap extends Annotator.Plugin
"#{(@index[d] + @index[d+1]) / 2}px"
.html (d) =>
"<div class='label'>#{@buckets[d].length}</div><div class='svg'></div>"
total = @buckets[d].reduce (total, a) ->
subtotal =
if a.thread.children.length
a.thread.flattenChildren().length
else
0
total + subtotal + 1
, 0
"<div class='label'>#{total}</div><div class='svg'></div>"
.classed('upper', @isUpper)
.classed('lower', @isLower)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment