Browse Source

minor change

mhsanaei 10 hours ago
parent
commit
8c8d280f14
4 changed files with 4 additions and 4 deletions
  1. 2 2
      sub/sub.go
  2. 1 1
      sub/subController.go
  3. 1 1
      sub/subService.go
  4. 0 0
      web/html/settings/panel/subscription/subpage.html

+ 2 - 2
sub/sub.go

@@ -30,7 +30,7 @@ func setEmbeddedTemplates(engine *gin.Engine) error {
 		webpkg.EmbeddedHTML(),
 		"html/common/page.html",
 		"html/component/aThemeSwitch.html",
-		"html/subscription.html",
+		"html/settings/panel/subscription/subpage.html",
 	)
 	if err != nil {
 		return err
@@ -207,7 +207,7 @@ func (s *Server) getHtmlFiles() ([]string, error) {
 		files = append(files, theme)
 	}
 	// page itself
-	page := filepath.Join(dir, "web", "html", "subscription.html")
+	page := filepath.Join(dir, "web", "html", "subpage.html")
 	if _, err := os.Stat(page); err == nil {
 		files = append(files, page)
 	} else {

+ 1 - 1
sub/subController.go

@@ -75,7 +75,7 @@ func (a *SUBController) subs(c *gin.Context) {
 			// Build page data in service
 			subURL, subJsonURL := a.subService.BuildURLs(scheme, hostWithPort, a.subPath, a.subJsonPath, subId)
 			page := a.subService.BuildPageData(subId, hostHeader, traffic, lastOnline, subs, subURL, subJsonURL)
-			c.HTML(200, "subscription.html", gin.H{
+			c.HTML(200, "subpage.html", gin.H{
 				"title":        "subscription.title",
 				"cur_ver":      config.GetVersion(),
 				"host":         page.Host,

+ 1 - 1
sub/subService.go

@@ -1007,7 +1007,7 @@ func searchHost(headers any) string {
 	return ""
 }
 
-// PageData is a view model for subscription.html
+// PageData is a view model for subpage.html
 type PageData struct {
 	Host         string
 	BasePath     string

+ 0 - 0
web/html/subscription.html → web/html/settings/panel/subscription/subpage.html