Skip to content

Commit

Permalink
show state in satoshi withdraw list
Browse files Browse the repository at this point in the history
  • Loading branch information
hpyhacking committed Apr 8, 2014
1 parent d909e98 commit a7a7e9d
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions app/grids/satoshi_withdraws_grid.rb
Original file line number Diff line number Diff line change
Expand Up @@ -10,16 +10,14 @@ class SatoshiWithdrawsGrid
self.default_column_options = { :order => false }

column :id
column :created_at
column_localtime :created_at
column :fund_uid
column :fund_extra
column(:sum) {|withdraw| "#{withdraw.currency_symbol}#{withdraw.sum}"}
column :position_in_queue do |o|
o.position_in_queue if o.position_in_queue > 0
end
column :actions, html: true, header: '' do |withdraw|
if withdraw.cancelable?
link_to I18n.t('actions.cancel'), withdraw_path(withdraw), method: :delete
content_tag(:span, "#{withdraw.aasm_state_text} / ") +
link_to I18n.t('actions.cancel'), withdraw_path(withdraw), method: :delete
else
withdraw.aasm_state_text
end
Expand Down

0 comments on commit a7a7e9d

Please sign in to comment.