app/views/esr_files/show.html.haml in vesr-0.12.0 vs app/views/esr_files/show.html.haml in vesr-0.12.1

- old
+ new

@@ -1,24 +1,14 @@ -.contextual - = link_to_function "Protokoll drucken", 'window.print()', :class => "icon icon-print" - = 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'] -.page-head - %h1 VESR Protokoll vom #{l(@esr_file.updated_at.to_date)} += contextual_links -- 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 verbuchte Zahlungen." += boot_page_title +%h3 Korrekte Zahlungen += render 'esr_records/list', :esr_records => @esr_file.esr_records.valid + - 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 - -= render :partial => 'sidebar'