Adjust the title time_entries view based on whether the task is billed

This commit is contained in:
Paul van Tilburg 2012-01-02 13:59:43 +01:00
parent 91cb9d42b2
commit cc0bb4a371
1 changed files with 1 additions and 1 deletions

View File

@ -1305,7 +1305,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 unbilled time"
h2 "Registered #{task.billed? ? "billed" : "unbilled"} time"
else
h2 "Timeline"
end