mirror of
https://github.com/internetee/registry.git
synced 2025-05-30 01:20:04 +02:00
Story#105314040 add sorting to contact domains (remove debug)
This commit is contained in:
parent
5dc550172d
commit
26b0ca7cdd
1 changed files with 1 additions and 1 deletions
|
@ -60,7 +60,7 @@ module ApplicationHelper
|
||||||
sort = params.fetch(:sort, {})[param_name]
|
sort = params.fetch(:sort, {})[param_name]
|
||||||
order = {"asc"=>"desc", "desc"=>"asc"}[sort] || "asc"
|
order = {"asc"=>"desc", "desc"=>"asc"}[sort] || "asc"
|
||||||
|
|
||||||
# binding.pry
|
|
||||||
if params.fetch(:sort, {}).include?(param_name)
|
if params.fetch(:sort, {}).include?(param_name)
|
||||||
title += (sort == "asc" ? " ▲" : " ▼")
|
title += (sort == "asc" ? " ▲" : " ▼")
|
||||||
end
|
end
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue