From fd6b853154d98cd25106ee363bc70cb09b647705 Mon Sep 17 00:00:00 2001 From: Paul van Tilburg Date: Fri, 7 Feb 2014 21:36:09 +0100 Subject: [PATCH] Move the 'Create a new invoice' button to a more consistent location --- stoptime.rb | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/stoptime.rb b/stoptime.rb index 56d2381..3376e9c 100644 --- a/stoptime.rb +++ b/stoptime.rb @@ -1918,10 +1918,14 @@ module StopTime::Views end end - h2 "Invoices" + h2 do + text! "Invoices" + div.btn_group.pull_right do + a.btn.btn_small "» Create a new invoice", + :href => R(CustomersNInvoicesNew, @customer.id) + end + end _invoice_list(@invoices) - a.btn "» Create a new invoice", - :href => R(CustomersNInvoicesNew, @customer.id) end end end