demarches-normaliennes/app/views/instructeurs/procedures/_header_field.html.haml
2021-05-06 09:13:20 +02:00

9 lines
432 B
Text

%th{ class: classname }
= link_to update_sort_instructeur_procedure_path(@procedure, table: field['table'], column: field['column']) do
- if @procedure_presentation.sort['table'] == field['table'] && @procedure_presentation.sort['column'] == field['column']
- if @procedure_presentation.sort['order'] == 'asc'
#{field['label']} ↑
- else
#{field['label']} ↓
- else
#{field['label']}