From 3570cbb3f412cd74be46983eed335498c0281808 Mon Sep 17 00:00:00 2001 From: Paul van Tilburg Date: Sat, 10 Dec 2011 21:08:48 +0100 Subject: [PATCH] Rename Views#invoice to invoice_form for consistency --- stoptime.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/stoptime.rb b/stoptime.rb index d08e7be..1409da1 100644 --- a/stoptime.rb +++ b/stoptime.rb @@ -846,7 +846,7 @@ module StopTime::Controllers if @format == "html" @input = @invoice.attributes - render :invoice + render :invoice_form elsif @format == "tex" tex_file = PUBLIC_DIR + "invoices/#{@number}.tex" _generate_invoice_tex(@number) unless tex_file.exist? @@ -1459,7 +1459,7 @@ module StopTime::Views # A view displaying the information (billed tasks and time) of an # invoice (Models::Invoice) that also allows for updating the "+paid+" # property. - def invoice + def invoice_form h2 do span "Invoice for " a @customer.name, :href => R(CustomersN, @customer.id)