spec/dummy/app/views/orders/index.html.erb in opay-1.1.3 vs spec/dummy/app/views/orders/index.html.erb in opay-1.1.4

- old
+ new

@@ -2,20 +2,21 @@ <table> <tr> <th>Name</th> <th>Amount</th> + <th>Paid?</th> <th></th> <th></th> <th></th> </tr> <% @orders.each do |order| %> <tr> <td><%= order.name %></td> <td><%= order.amount %></td> - <td><%= link_to 'Show', order %></td> - <td><%= link_to 'Edit', edit_order_path(order) %></td> + <td><%= order.finished? %></td> + <td><%= link_to 'Payment', order unless order.finished? %></td> <td><%= link_to 'Destroy', order, method: :delete, data: { confirm: 'Are you sure?' } %></td> </tr> <% end %> </table>