- item_action ||= lambda{|object| url_for(object)} %tr[booking_template] %td = link_to "%s" % [booking_template.title, booking_template.code], item_action.call(booking_template), 'data-href-container' => 'tr' - if booking_template.comments.present? %hr{:style => "height: 1px; margin: 0"}/ %i= booking_template.comments %td - booking_template.tags.each do |tag| = boot_label(tag) %td= link_to booking_template.debit_account.code, account_path(booking_template.debit_account), :title => booking_template.debit_account.title unless booking_template.debit_account.nil? %td= link_to booking_template.credit_account.code, account_path(booking_template.credit_account), :title => booking_template.credit_account.title unless booking_template.credit_account.nil? %td.currency= amount_to_s(booking_template) %td= t(booking_template.amount_relates_to, :scope => 'booking_template.relation') if booking_template.amount_relates_to.present?