Sha256: 2b20d27947f7ac510bc5131c3189c61e5c3e6e0b9d4cac07f129f27d8be788e1

Contents?: true

Size: 921 Bytes

Versions: 4

Compression:

Stored size: 921 Bytes

Contents

%tr[@booking]
  %td= @booking.value_date
  %td
    = link_to @booking.title, @booking, {'data-href-container' => 'tr'}
    - if @booking.comments.present?
      %hr{:style => "height: 1px; margin: 0"}/
      %i= @booking.comments
  %td= @booking.reference.try(:to_s)
  %td.currency= (@booking.debit_account == @account) ? currency_fmt(@booking.amount) : content_tag('i', link_to(@booking.debit_account.code, account_path(@booking.debit_account), :title => @booking.debit_account.title))
  %td.currency= (@booking.credit_account == @account) ? currency_fmt(@booking.amount) : content_tag('i', link_to(@booking.credit_account.code, account_path(@booking.credit_account), :title => @booking.credit_account.title))
  %td.currency= currency_fmt(@saldo)
  %td.action-links
    = list_link_for(:edit, [@account, @booking])
    = list_link_for(:delete, [@account, @booking], :remote => true)
    = list_link_for(:copy, @booking)

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
has_accounts_engine-3.0.0.beta1 app/views/accounts/_booking_item.html.haml
has_accounts_engine-3.0.0.beta0 app/views/accounts/_booking_item.html.haml
has_accounts_engine-2.0.1 app/views/accounts/_booking_item.html.haml
has_accounts_engine-2.0.0 app/views/accounts/_booking_item.html.haml