Updated views to use the instance vars and no longer rely on Markaby's method_missing
This commit is contained in:
parent
b690f52d64
commit
30440288d9
1 changed files with 5 additions and 5 deletions
10
stoptime.rb
10
stoptime.rb
|
@ -1407,7 +1407,7 @@ module StopTime::Views
|
|||
# FIXME: This should be done in a nicer way.
|
||||
def time_entries(task_id=nil)
|
||||
if task_id.present?
|
||||
h2 "Registered #{task.billed? ? "billed" : "unbilled"} time"
|
||||
h2 "Registered #{@task.billed? ? "billed" : "unbilled"} time"
|
||||
else
|
||||
h2 "Timeline"
|
||||
end
|
||||
|
@ -1497,7 +1497,7 @@ module StopTime::Views
|
|||
"what you are doing!"
|
||||
end
|
||||
end
|
||||
form :action => R(*target), :method => :post do
|
||||
form :action => R(*@target), :method => :post do
|
||||
ol do
|
||||
li do
|
||||
label "Customer", :for => "customer"
|
||||
|
@ -1651,7 +1651,7 @@ module StopTime::Views
|
|||
p.warn do
|
||||
em "This task is already billed! Only make changes if you know " +
|
||||
"what you are doing!"
|
||||
end if task.billed?
|
||||
end if @task.billed?
|
||||
form :action => R(*@target), :method => :post do
|
||||
ol do
|
||||
li do
|
||||
|
@ -1673,7 +1673,7 @@ module StopTime::Views
|
|||
end
|
||||
end
|
||||
end
|
||||
if task.billed?
|
||||
if @task.billed?
|
||||
li do
|
||||
label "Billed in invoice"
|
||||
a @task.invoice.number,
|
||||
|
@ -1760,7 +1760,7 @@ module StopTime::Views
|
|||
tr do
|
||||
td do
|
||||
a task.comment_or_name,
|
||||
:href => R(CustomersNTasksN, customer.id, task.id)
|
||||
:href => R(CustomersNTasksN, task.customer.id, task.id)
|
||||
end
|
||||
if line[1].blank?
|
||||
# FIXME: information of time spent is available in the summary
|
||||
|
|
Loading…
Reference in a new issue