From bc8860ce32a8f83b32630d38904843f1ff9453c0 Mon Sep 17 00:00:00 2001 From: Otto Richter Date: Sun, 28 Apr 2024 12:56:28 +0200 Subject: [PATCH] Move watching sub-template to sidebar folder --- routers/web/repo/issue_watch.go | 2 +- templates/repo/issue/view_content/sidebar/watch.tmpl | 2 +- templates/repo/issue/view_content/{ => sidebar}/watching.tmpl | 0 3 files changed, 2 insertions(+), 2 deletions(-) rename templates/repo/issue/view_content/{ => sidebar}/watching.tmpl (100%) diff --git a/routers/web/repo/issue_watch.go b/routers/web/repo/issue_watch.go index 8b033f3b17..c8d7187b8e 100644 --- a/routers/web/repo/issue_watch.go +++ b/routers/web/repo/issue_watch.go @@ -14,7 +14,7 @@ import ( ) const ( - tplWatching base.TplName = "repo/issue/view_content/watching" + tplWatching base.TplName = "repo/issue/view_content/sidebar/watching" ) // IssueWatch sets issue watching diff --git a/templates/repo/issue/view_content/sidebar/watch.tmpl b/templates/repo/issue/view_content/sidebar/watch.tmpl index 852738a706..ee14168070 100644 --- a/templates/repo/issue/view_content/sidebar/watch.tmpl +++ b/templates/repo/issue/view_content/sidebar/watch.tmpl @@ -1,6 +1,6 @@
{{ctx.Locale.Tr "notification.notifications"}}
- {{template "repo/issue/view_content/watching" .}} + {{template "repo/issue/view_content/sidebar/watching" .}}
diff --git a/templates/repo/issue/view_content/watching.tmpl b/templates/repo/issue/view_content/sidebar/watching.tmpl similarity index 100% rename from templates/repo/issue/view_content/watching.tmpl rename to templates/repo/issue/view_content/sidebar/watching.tmpl