]> source.dussan.org Git - gitea.git/commitdiff
Fix missing AppSubUrl in some templates (#5020)
authorSagePtr <sageptr@gmail.com>
Fri, 5 Oct 2018 17:22:33 +0000 (19:22 +0200)
committerLauris BH <lauris@nix.lv>
Fri, 5 Oct 2018 17:22:33 +0000 (20:22 +0300)
templates/explore/repo_list.tmpl
templates/repo/home.tmpl

index e769e4b7fdae8a6f60705ef4d27414433bd714e6..625a67dfbd07450917965aed00d1e4a7ca31caa1 100644 (file)
@@ -20,7 +20,7 @@
                        {{if .Topics }}
                                <div>
                                {{range .Topics}}
-                                       {{if ne . "" }}<a href="/explore/repos?q={{.}}&topic=1"><div class="ui green basic label topic">{{.}}</div></a>{{end}}
+                                       {{if ne . "" }}<a href="{{AppSubUrl}}/explore/repos?q={{.}}&topic=1"><div class="ui green basic label topic">{{.}}</div></a>{{end}}
                                {{end}}
                                </div>
                        {{end}}
index 8c81ae29ea8357397bdf88da31448499d9dfda61..cc2d65e7637b718b9ecaa12cbcef56cc11304041 100644 (file)
@@ -24,7 +24,7 @@
                        {{end}}
                </div>
                <div class="ui repo-topic" id="repo-topic">
-               {{range .Topics}}<a class="ui green basic label topic" style="cursor:pointer;" href="/explore/repos?q={{.Name}}&topic=1">{{.Name}}</a>{{end}}
+               {{range .Topics}}<a class="ui green basic label topic" style="cursor:pointer;" href="{{AppSubUrl}}/explore/repos?q={{.Name}}&topic=1">{{.Name}}</a>{{end}}
                {{if .IsRepositoryAdmin}}<a id="manage_topic" style="cursor:pointer;margin-left:10px;">{{.i18n.Tr "repo.topic.manage_topics"}}</a>{{end}}
                </div>
                {{if .IsRepositoryAdmin}}