]> source.dussan.org Git - gitea.git/commitdiff
fix href on label in sidebar (#15022)
authorNorwin <noerw@users.noreply.github.com>
Thu, 18 Mar 2021 12:47:17 +0000 (12:47 +0000)
committerGitHub <noreply@github.com>
Thu, 18 Mar 2021 12:47:17 +0000 (14:47 +0200)
templates/repo/issue/labels/labels_sidebar.tmpl

index 1d61ecf3df5b828a6d10344da6461bacd3f46735..77f9a50358b4c4a2fd5151edbb26aa62ee5b1b8e 100644 (file)
@@ -2,10 +2,10 @@
        <span class="no-select item {{if .ctx.HasSelectedLabel}}hide{{end}}">{{.ctx.i18n.Tr "repo.issues.new.no_label"}}</span>
        <span class="labels-list">
                {{range .ctx.Labels}}
-                       {{template "repo/issue/labels/label" dict "root" $ "label" .}}
+                       {{template "repo/issue/labels/label" dict "root" $.root "label" .}}
                {{end}}
                {{range .ctx.OrgLabels}}
-                       {{template "repo/issue/labels/label" dict "root" $ "label" .}}
+                       {{template "repo/issue/labels/label" dict "root" $.root "label" .}}
                {{end}}
        </span>
 </div>