app/views/log_uploads/_log_list.html.haml
%table.table.table-condensed.logs
%thead
%tr
%th Filename
%th End time
%th Size
%th Actions
- @logs.each do |log|
%tr
%td= log[:file_name]
%td= I18n.l(log[:last_modified], :format => :datepicker)
%td= number_to_human_size(log[:size].to_i)
%td.actions
= link_to show_log_reservation_log_uploads_path(reservation, :file_name => log[:file_name]), :class => 'btn btn-small btn-inverse', :title => "Read log" do
Read log
%i.fa.fa-zoom-in
= link_to new_reservation_log_upload_path(reservation, :file_name => log[:file_name]), :class => 'btn btn-small btn-success', :title => "logs.tf" do
Send to logs.tf
%i.fa.fa-upload