diff options
author | George Andrinopoulos <geoandri@gmail.com> | 2017-11-10 22:18:42 +0200 |
---|---|---|
committer | George Andrinopoulos <geoandri@gmail.com> | 2017-11-11 16:47:39 +0200 |
commit | 8f6b3d7452447b5ef6c669c2ff5ad3b394e27dea (patch) | |
tree | b57276b55ed85b7ab4a33444b1b5db1cc621b9d4 | |
parent | 46cacbe5cfa69b1ae63ce8b669bc9d9f06676ea2 (diff) | |
download | gitlab-ce-8f6b3d7452447b5ef6c669c2ff5ad3b394e27dea.tar.gz |
Add externalized strings
-rw-r--r-- | app/models/concerns/milestoneish.rb | 2 | ||||
-rw-r--r-- | app/views/shared/milestones/_sidebar.html.haml | 6 |
2 files changed, 4 insertions, 4 deletions
diff --git a/app/models/concerns/milestoneish.rb b/app/models/concerns/milestoneish.rb index 7fe55f8402f..7026f565706 100644 --- a/app/models/concerns/milestoneish.rb +++ b/app/models/concerns/milestoneish.rb @@ -87,7 +87,7 @@ module Milestoneish end def total_issue_time_spent - issues.joins(:timelogs).sum(:time_spent) + @total_issue_time_spent ||= issues.joins(:timelogs).sum(:time_spent) end def human_total_issue_time_spent diff --git a/app/views/shared/milestones/_sidebar.html.haml b/app/views/shared/milestones/_sidebar.html.haml index d396e80e12c..4f51455c26e 100644 --- a/app/views/shared/milestones/_sidebar.html.haml +++ b/app/views/shared/milestones/_sidebar.html.haml @@ -92,14 +92,14 @@ - if milestone.human_total_issue_time_spent = milestone.human_total_issue_time_spent - else - None + = _("None") .title.hide-collapsed - Total issue time spent + = _("Total issue time spent") .value.hide-collapsed - if milestone.human_total_issue_time_spent %span.bold= milestone.human_total_issue_time_spent - else - %span.no-value No time spent + %span.no-value= _("No time spent") .block.merge-requests .sidebar-collapsed-icon |