demarches-normaliennes/app/views/new_gestionnaire/procedures/_header_field.html.haml
2017-10-02 17:45:22 +02:00

8 lines
474 B
Text

%th{ class: classname }
= link_to update_sort_procedure_path(@procedure, table: field['table'], column: field['column']) do
= 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") }