aboutsummaryrefslogtreecommitdiffstats
path: root/app/views/tweets/_timeline_thresholds.html.haml
diff options
context:
space:
mode:
Diffstat (limited to 'app/views/tweets/_timeline_thresholds.html.haml')
-rw-r--r--app/views/tweets/_timeline_thresholds.html.haml7
1 files changed, 7 insertions, 0 deletions
diff --git a/app/views/tweets/_timeline_thresholds.html.haml b/app/views/tweets/_timeline_thresholds.html.haml
new file mode 100644
index 0000000..785cad2
--- /dev/null
+++ b/app/views/tweets/_timeline_thresholds.html.haml
@@ -0,0 +1,7 @@
+.thresholds
+ .btn-group
+ - counts.sort.each do |c|
+ - if [params[:reactions].to_i, 1].max == c
+ %button.btn.btn-default.active{type: "button"}= "#{c} acts"
+ - else
+ = link_to "#{c} acts", params.merge(reactions: c), class: "btn btn-default"