diff --git a/stoptime.rb b/stoptime.rb index c51a9c1..332b961 100644 --- a/stoptime.rb +++ b/stoptime.rb @@ -1788,6 +1788,16 @@ module StopTime::Views text! "No projects/tasks found! Create one " + "#{a "here", :href => R(CustomersNTasksNew, customer.id)}." end + elsif @active_tasks[customer].empty? + p do + text! "No active projects/tasks found! " + + "Register time on one of these tasks: " + br + @tasks[customer].each do |task| + a task.name, :href => R(CustomersNTasksN, customer.id, task.id) + text! "·" unless task == @tasks[customer].last + end + end else table.table.table_condensed do col.task