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

9 lines
487 B
Text
Raw Normal View History

%th{ class: classname }
= link_to update_sort_gestionnaire_procedure_path(@procedure, table: field['table'], column: field['column']) do
2017-09-27 15:16:07 +02:00
= field['label']
- if @procedure_presentation.sort['table'] == field['table'] && @procedure_presentation.sort['column'] == field['column']
- if @procedure_presentation.sort['order'] == 'asc'
%img.caret-icon{ src: image_url("table/up_caret.svg") }
- else
%img.caret-icon{ src: image_url("table/down_caret.svg") }