summaryrefslogtreecommitdiffstats
path: root/templates/user
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
parentc03a9b3e422ded9d8200a83b94ab56ddb4740d94 (diff)
downloadgitea-e09fe487734238708c2f9fc7c47dbb2132250400.tar.gz
gitea-e09fe487734238708c2f9fc7c47dbb2132250400.zip
Refactor heatmap to vue component (#5401)
Diffstat (limited to 'templates/user')
-rw-r--r--templates/user/dashboard/dashboard.tmpl9
-rw-r--r--templates/user/profile.tmpl9
2 files changed, 14 insertions, 4 deletions
diff --git a/templates/user/dashboard/dashboard.tmpl b/templates/user/dashboard/dashboard.tmpl
index ac094f24c7..e7b378e364 100644
--- a/templates/user/dashboard/dashboard.tmpl
+++ b/templates/user/dashboard/dashboard.tmpl
@@ -6,8 +6,13 @@
<div class="ui mobile reversed stackable grid">
<div class="ten wide column">
{{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}}
{{template "user/dashboard/feeds" .}}
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">