aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorrhenium <rhenium@rhe.jp>2014-08-06 03:23:16 +0900
committerrhenium <rhenium@rhe.jp>2014-08-06 03:23:16 +0900
commit0f2f17664b14b3cdfeaf957523648be3bc3e1367 (patch)
tree616caea25c5cb26a69a7ab437c5f66da4ecae681
parent78d2075927024edddfdfa48fcf779a8fac4ad859 (diff)
downloadaclog-0f2f17664b14b3cdfeaf957523648be3bc3e1367.tar.gz
web: fix sidebar thresholds part
-rw-r--r--app/views/shared/sidebar/parts/_thresholds.html.haml2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/views/shared/sidebar/parts/_thresholds.html.haml b/app/views/shared/sidebar/parts/_thresholds.html.haml
index 8fad6c4..05bdb4a 100644
--- a/app/views/shared/sidebar/parts/_thresholds.html.haml
+++ b/app/views/shared/sidebar/parts/_thresholds.html.haml
@@ -1,7 +1,7 @@
- counts.each_slice(2).to_a.transpose.each do |ns|
.list-group-col
- ns.each do |n|
- - if n == (params[param] || default)
+ - if n.to_s == (params[param] || default).to_s
= link_to n, params, class: "list-group-item active"
- else
= link_to n, params.merge(param => (n == default ? nil : n)), class: "list-group-item"