From 7083e78a22564ea8a253306700c65288751e9acf Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?David=20Barrag=C3=A1n=20Merino?= Date: Wed, 10 Jun 2015 17:11:32 +0200 Subject: [PATCH] Fix completed percent in metatags --- app/coffee/modules/userstories/detail.coffee | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/coffee/modules/userstories/detail.coffee b/app/coffee/modules/userstories/detail.coffee index 006da05c..935f43f3 100644 --- a/app/coffee/modules/userstories/detail.coffee +++ b/app/coffee/modules/userstories/detail.coffee @@ -67,7 +67,7 @@ class UserStoryDetailController extends mixOf(taiga.Controller, taiga.PageMixin) _setMeta: -> totalTasks = @scope.tasks.length closedTasks = _.filter(@scope.tasks, (t) => @scope.taskStatusById[t.status].is_closed).length - progressPercentage = if totalTasks > 0 then 100 * closedTasks / totalTasks else 0 + progressPercentage = if totalTasks > 0 then Math.round(100 * closedTasks / totalTasks) else 0 title = @translate.instant("US.PAGE_TITLE", { userStoryRef: "##{@scope.us.ref}"