summaryrefslogtreecommitdiffstats
path: root/templates/user/heatmap.tmpl
diff options
context:
space:
mode:
Diffstat (limited to 'templates/user/heatmap.tmpl')
-rw-r--r--templates/user/heatmap.tmpl8
1 files changed, 7 insertions, 1 deletions
diff --git a/templates/user/heatmap.tmpl b/templates/user/heatmap.tmpl
index 9d58bc8fc5..5d42a5435b 100644
--- a/templates/user/heatmap.tmpl
+++ b/templates/user/heatmap.tmpl
@@ -1,5 +1,11 @@
{{if .HeatmapData}}
- <div id="user-heatmap" data-heatmap-data="{{Json .HeatmapData}}">
+ <div id="user-heatmap"
+ data-heatmap-data="{{Json .HeatmapData}}"
+ data-locale-total-contributions="{{$.locale.Tr "heatmap.number_of_contributions_in_the_last_12_months" ($.locale.PrettyNumber .HeatmapTotalContributions)}}"
+ data-locale-no-contributions="{{.locale.Tr "heatmap.no_contributions"}}"
+ data-locale-more="{{.locale.Tr "heatmap.more"}}"
+ data-locale-less="{{.locale.Tr "heatmap.less"}}"
+ >
<div slot="loading">
<div class="ui active centered inline indeterminate text loader" id="loading-heatmap">{{.locale.Tr "user.heatmap.loading"}}</div>
</div>