summaryrefslogtreecommitdiffstats
path: root/templates/user/profile.tmpl
diff options
context:
space:
mode:
authorLauris BH <lauris@nix.lv>2018-11-27 11:36:54 +0200
committerJonas Franz <info@jonasfranz.software>2018-11-27 10:36:54 +0100
commite09fe487734238708c2f9fc7c47dbb2132250400 (patch)
treebd302a98f3badfe9e2b74283e2d068bfd92bb5f8 /templates/user/profile.tmpl
parentc03a9b3e422ded9d8200a83b94ab56ddb4740d94 (diff)
downloadgitea-e09fe487734238708c2f9fc7c47dbb2132250400.tar.gz
gitea-e09fe487734238708c2f9fc7c47dbb2132250400.zip
Refactor heatmap to vue component (#5401)
Diffstat (limited to 'templates/user/profile.tmpl')
-rw-r--r--templates/user/profile.tmpl9
1 files changed, 7 insertions, 2 deletions
diff --git a/templates/user/profile.tmpl b/templates/user/profile.tmpl
index 3f535ba140..350032e564 100644
--- a/templates/user/profile.tmpl
+++ b/templates/user/profile.tmpl
@@ -96,8 +96,13 @@
{{if eq .TabName "activity"}}
{{if .EnableHeatmap}}
- <div class="ui active centered inline indeterminate text loader" id="loading-heatmap">{{.i18n.Tr "user.heatmap.loading"}}</div>
- <div id="user-heatmap"></div>
+ <div id="user-heatmap" style="padding-right: 40px">
+ <activity-heatmap :locale="locale" :suburl="suburl" :user="heatmapUser">
+ <div slot="loading">
+ <div class="ui active centered inline indeterminate text loader" id="loading-heatmap">{{.i18n.Tr "user.heatmap.loading"}}</div>
+ </div>
+ </activity-heatmap>
+ </div>
<div class="ui divider"></div>
{{end}}
<div class="feeds">