diff options
-rw-r--r-- | app/views/shared/sidebar/parts/_thresholds.html.haml | 2 |
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" |