From c17f3738377c0939d9f95535990ce05482b2e9d3 Mon Sep 17 00:00:00 2001 From: Minecon724 Date: Sun, 16 Mar 2025 17:46:43 +0100 Subject: [PATCH] Move user RSS icon (WIP) Signed-off-by: Minecon724 --- templates/shared/user/profile_big_avatar.tmpl | 5 +---- templates/user/heatmap.tmpl | 5 +++++ web_src/css/features/heatmap.css | 4 ++++ web_src/js/components/ActivityHeatmap.vue | 10 +++++++++- web_src/js/features/heatmap.js | 8 +++++++- 5 files changed, 26 insertions(+), 6 deletions(-) diff --git a/templates/shared/user/profile_big_avatar.tmpl b/templates/shared/user/profile_big_avatar.tmpl index d718fa390f..5b4ec0e0c8 100644 --- a/templates/shared/user/profile_big_avatar.tmpl +++ b/templates/shared/user/profile_big_avatar.tmpl @@ -22,10 +22,7 @@ {{end}}
diff --git a/templates/user/heatmap.tmpl b/templates/user/heatmap.tmpl index 05403e34e3..9b1a05fd5a 100644 --- a/templates/user/heatmap.tmpl +++ b/templates/user/heatmap.tmpl @@ -8,6 +8,11 @@ data-locale-contributions-few="{{ctx.Locale.Tr "heatmap.contributions_few"}}" data-locale-more="{{ctx.Locale.Tr "heatmap.more"}}" data-locale-less="{{ctx.Locale.Tr "heatmap.less"}}" + data-locale-rss-feed="{{ctx.Locale.Tr "rss_feed"}}" + {{if and .EnableFeed (or .IsAdmin (eq .SignedUserID .ContextUser.ID) (not .ContextUser.KeepActivityPrivate))}} + data-rss-target="{{.ContextUser.HomeLink}}.rss" + {{end}} >
+ {{end}} diff --git a/web_src/css/features/heatmap.css b/web_src/css/features/heatmap.css index c064590c46..d5472bed92 100644 --- a/web_src/css/features/heatmap.css +++ b/web_src/css/features/heatmap.css @@ -56,3 +56,7 @@ bottom: -4px; } } + +.vch__legend-right { + margin-right: 1em; +} diff --git a/web_src/js/components/ActivityHeatmap.vue b/web_src/js/components/ActivityHeatmap.vue index be0841e831..dffad7926d 100644 --- a/web_src/js/components/ActivityHeatmap.vue +++ b/web_src/js/components/ActivityHeatmap.vue @@ -12,6 +12,10 @@ export default { type: Object, default: () => {}, }, + extra: { + type: Object, + default: () => {}, + }, }, data: () => ({ colorRange: [ @@ -54,7 +58,11 @@ export default { };