From 0ea8228aa2f3116e5d349f03798cfac467ce5a63 Mon Sep 17 00:00:00 2001 From: chrisbr Date: Wed, 17 Dec 2014 16:56:31 +0100 Subject: [PATCH] Fix ticket total price on each row --- app/views/tickets/index.html.haml | 24 ++++++++++++------------ 1 file changed, 12 insertions(+), 12 deletions(-) diff --git a/app/views/tickets/index.html.haml b/app/views/tickets/index.html.haml index 5dec92d7..4109e82e 100644 --- a/app/views/tickets/index.html.haml +++ b/app/views/tickets/index.html.haml @@ -20,18 +20,18 @@ %tbody - @conference.tickets.each do |ticket| = render partial: 'ticket', f: f, locals: {ticket: ticket} - %tr - %td - %td - %td.col-sm-1.col-md-1.text-center - %h4 - Total - %td.col-sm-1.col-md-1.text-center - %h4 - %strong - = @conference.tickets.first.price.symbol - %span{id: 'total_price'} - 0 + %tr + %td + %td + %td.col-sm-1.col-md-1.text-center + %h4 + Total + %td.col-sm-1.col-md-1.text-center + %h4 + %strong + = @conference.tickets.first.price.symbol + %span{id: 'total_price'} + 0 .pull-right .btn-group-vertical = button_tag(type: 'submit', class: 'btn btn-success btn-lg') do