26 lines
607 B
Text
26 lines
607 B
Text
|
%h4= title
|
||
|
%table.pure-table
|
||
|
%thead
|
||
|
%tr
|
||
|
%th Peer
|
||
|
%th Issuer
|
||
|
%th Amount
|
||
|
%th Message
|
||
|
- if actions
|
||
|
%th Accept
|
||
|
%th Decline
|
||
|
%tbody
|
||
|
- (requests || []).each do |r|
|
||
|
%tr
|
||
|
%td= r.creditor.name
|
||
|
%td= r.issuer.name
|
||
|
%td= "€#{r.amount/100.0}"
|
||
|
%td= r.message
|
||
|
- if actions
|
||
|
%td
|
||
|
= link_to request_confirm_path(r), method: :post do
|
||
|
%span.glyphicon.glyphicon-ok
|
||
|
%td
|
||
|
= link_to request_decline_path(r), method: :post do
|
||
|
%span.glyphicon.glyphicon-remove
|