app/views/esr_files/show.html.haml in vesr-0.11.2 vs app/views/esr_files/show.html.haml in vesr-0.11.3

- old
+ new

@@ -3,18 +3,22 @@ = link_to "VESR Liste", esr_files_path, :class => "icon icon-book" = link_to t_action(:show_all), {:show_valid => true}, :class => 'icon icon-show_all' unless params['show_valid'] %h2 VESR Protokoll vom #{l(@esr_file.updated_at.to_date)} +- if params['show_valid'].present? + %h3 Korrekte Zahlungen + = render 'esr_records/list', :esr_records => @esr_file.esr_records.valid +- else + .alert-message.block-message.fade.in.success{'data-alert' => 'alert'} + %a.close{:href => '#'} × + = "%{@esr_file.esr_records.valid.count} korrekt verbucht." + - unless @esr_file.esr_records.invalid.empty? %h3 Falscher Betrag = render 'esr_records/list', :esr_records => @esr_file.esr_records.invalid - unless @esr_file.esr_records.missing.empty? %h3 Rechnung nicht gefunden = render 'esr_records/list', :esr_records => @esr_file.esr_records.missing - -- if params['show_valid'].present? - %h3 Korrekte Zahlungen - = render 'esr_records/list', :esr_records => @esr_file.esr_records.valid = render :partial => 'sidebar'