app/views/iugu/account/payment_history.html.haml in iugusdk-1.0.0.alpha.21 vs app/views/iugu/account/payment_history.html.haml in iugusdk-1.0.0.alpha.22
- old
+ new
@@ -1,13 +1,21 @@
+%h3
+ Histórico de Pagamentos
+
%table
%tr
%th ID
%th Total
+ %th Vencimento
%th Status
- @invoices.each do |invoice|
%tr
%td
- = invoice.id
+ = link_to invoice.id[-8,8], invoice.secure_url, :target => "_blank"
%td
= invoice.total
%td
- = invoice.status
+ = I18n.l invoice.due_date.to_date, format: :short
+ %td
+ = I18n.t "invoice_status.#{invoice.status}"
+
+= link_to I18n.t("iugu.back"), account_view_path(id: params[:account_id]), class: "button no-bottom-margin"