]> source.dussan.org Git - gitea.git/commitdiff
Fix missing AppSubUrl in few more templates (#5021)
authorSagePtr <sageptr@gmail.com>
Fri, 5 Oct 2018 23:41:09 +0000 (01:41 +0200)
committertechknowlogick <hello@techknowlogick.com>
Fri, 5 Oct 2018 23:41:09 +0000 (19:41 -0400)
templates/repo/home.tmpl
templates/user/auth/u2f.tmpl

index cc2d65e7637b718b9ecaa12cbcef56cc11304041..7e11035ed262824ffdc0a99e361373a4ca15c3e4 100644 (file)
@@ -34,7 +34,7 @@
                                        <div class="ui fluid multiple search selection dropdown">
                                                <input type="hidden" name="topics" value="{{range $i, $v := .Topics}}{{.Name}}{{if lt (Add $i 1) (len $.Topics)}},{{end}}{{end}}">
                                                {{range .Topics}}
-                                               <a class="ui green basic label topic transition visible" data-value="{{.Name}}" style="display: inline-block !important;" href="/explore/repos?q={{.Name}}&topic=1">{{.Name}}<i class="delete icon"></i></a>
+                                               <a class="ui green basic label topic transition visible" data-value="{{.Name}}" style="display: inline-block !important;" href="{{AppSubUrl}}/explore/repos?q={{.Name}}&topic=1">{{.Name}}<i class="delete icon"></i></a>
                                                {{end}}
                                                <div class="text"></div>
                                        </div>
index fa5904fc382324d160432eafbb017bb737e108eb..1d1be09cbfbf956619ae43f6955d14ac3599550e 100644 (file)
@@ -13,7 +13,7 @@
                        </div>
                        <div id="wait-for-key" class="ui attached segment"><div class="ui active indeterminate inline loader"></div> {{.i18n.Tr "u2f_press_button"}} </div>
                        <div class="ui attached segment">
-                               <a href="/user/two_factor">{{.i18n.Tr "u2f_use_twofa"}}</a>
+                               <a href="{{AppSubUrl}}/user/two_factor">{{.i18n.Tr "u2f_use_twofa"}}</a>
                        </div>
                </div>
        </div>