Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/app
diff options
context:
space:
mode:
authorClement Ho <ClemMakesApps@gmail.com>2016-08-27 20:36:08 +0300
committerClement Ho <ClemMakesApps@gmail.com>2016-08-29 18:46:36 +0300
commit2b33b24a3a5174cb391bf6c93643838f743e3dd2 (patch)
tree5fb85fefada7c1a29a8a254470be8f3700ff2a27 /app
parentc288916db124f1a0aaf5fe3eff53335f23d11921 (diff)
Shorten task status phrase
Diffstat (limited to 'app')
-rw-r--r--app/models/concerns/taskable.rb4
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