diff options
author | Clement Ho <ClemMakesApps@gmail.com> | 2016-08-27 20:36:08 +0300 |
---|---|---|
committer | Clement Ho <ClemMakesApps@gmail.com> | 2016-08-29 18:46:36 +0300 |
commit | 2b33b24a3a5174cb391bf6c93643838f743e3dd2 (patch) | |
tree | 5fb85fefada7c1a29a8a254470be8f3700ff2a27 /app | |
parent | c288916db124f1a0aaf5fe3eff53335f23d11921 (diff) |
Shorten task status phrase
Diffstat (limited to 'app')
-rw-r--r-- | app/models/concerns/taskable.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/app/models/concerns/taskable.rb b/app/models/concerns/taskable.rb index df2a9e3e84b..a3ac577cf3e 100644 --- a/app/models/concerns/taskable.rb +++ b/app/models/concerns/taskable.rb @@ -52,11 +52,11 @@ module Taskable end # Return a string that describes the current state of this Taskable's task - # list items, e.g. "20 tasks (12 completed, 8 remaining)" + # list items, e.g. "12 of 20 tasks completed" def task_status return '' if description.blank? sum = tasks.summary - "#{sum.item_count} tasks (#{sum.complete_count} completed, #{sum.incomplete_count} remaining)" + "#{sum.complete_count} of #{sum.item_count} #{'task'.pluralize(sum.item_count)} completed" end end |