tab/app/views/requests/_index.html.haml

26 lines
595 B
Text
Raw Normal View History

2017-01-09 15:46:43 +01:00
%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
2017-01-09 16:40:58 +01:00
%td= r.amount_f
2017-01-09 15:46:43 +01:00
%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