demarches-normaliennes/app/views/instructeurs/procedures/_header_field.html.haml

10 lines
432 B
Text
Raw Normal View History

%th{ class: classname }
= link_to update_sort_instructeur_procedure_path(@procedure, table: field['table'], column: field['column']) do
2017-09-27 15:16:07 +02:00
- if @procedure_presentation.sort['table'] == field['table'] && @procedure_presentation.sort['column'] == field['column']
- if @procedure_presentation.sort['order'] == 'asc'
2021-04-26 17:06:54 +02:00
#{field['label']} ↑
2017-09-27 15:16:07 +02:00
- else
2021-04-26 17:06:54 +02:00
#{field['label']} ↓
- else
#{field['label']}