Sha256: e48e3c314eead740de86f65dbf0315f99f62b646fc7cb7345c5db83dcac4160f
Contents?: true
Size: 1.42 KB
Versions: 13
Compression:
Stored size: 1.42 KB
Contents
table_for(terminal.pings, :class => 'index_table index', :i18n => TerminalPing) do |t| t.column :created_at t.column :condition do |x| status_tag I18n.t("smartkiosk.terminal_conditions.#{x.condition}"), x.condition.to_sym end t.column :state do |x| I18n.t "smartkiosk.terminal_states.#{x.state}" end t.column :version t.column :ip t.column :queues do |x| ul do x.queues.each do |queue, count| li :style => 'white-space: nowrap' do b queue+':' span count end end end end t.column :banknotes do |x| ul do x.banknotes.each do |banknote, count| li :style => 'white-space: nowrap' do b banknote+':' span count end end end end Terminal::HARDWARE.each do |hardware| t.column :"#{hardware}_error" do |x| div :style => 'white-space: nowrap' do if x.error(hardware).blank? status_tag I18n.t('formtastic.no'), :ok else status_tag( ( I18n.t("smartkiosk.hardware.#{hardware}.errors")[x.error(hardware)] || I18n.t('smartkiosk.unlocalized') + " (#{x.error(hardware)})" ), :error ) end end end end t.column :cash_sum t.column :cash_count t.column :cash_acceptor_version t.column :printer_version t.column :modem_balance t.column :modem_signal_level t.column :modem_version end
Version data entries
13 entries across 13 versions & 1 rubygems