diff options
author | George Andrinopoulos <geoandri@gmail.com> | 2017-11-10 22:18:42 +0200 |
---|---|---|
committer | Winnie Hellmann <winnie@gitlab.com> | 2017-11-13 15:04:11 +0100 |
commit | 57a27023045446f08cad638ace1ec28bd5d1a1b9 (patch) | |
tree | 435aa66b67c0b791c9944453b7eff686319cd816 | |
parent | cdf9f1d1fe4bf73b82186975b9386c3d2b49a19a (diff) | |
download | gitlab-ce-57a27023045446f08cad638ace1ec28bd5d1a1b9.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 |