]> source.dussan.org Git - gitea.git/commit
Fix more HTMLURL in templates (#22831)
authorwxiaoguang <wxiaoguang@gmail.com>
Thu, 9 Feb 2023 16:31:30 +0000 (00:31 +0800)
committerGitHub <noreply@github.com>
Thu, 9 Feb 2023 16:31:30 +0000 (11:31 -0500)
commit24a9caa2f33db2664510e79f184892c8cb266b62
tree8be9d1541d92606f85ee72111752dad5dc3fea03
parent0c190e396df7025683b56f0e6f64356c907a8512
Fix more HTMLURL in templates (#22831)

I haven't tested `runs_list.tmpl` but I think it could be right.

After this PR, besides the `<meta .. HTMLURL>` in html head, the only
explicit HTMLURL usage is in `pull_merge_instruction.tmpl`, which
doesn't affect users too much and it's difficult to fix at the moment.

There are still many usages of `AppUrl` in the templates (eg: the
package help manual), they are similar problems as the HTMLURL in
pull_merge_instruction, and they might be fixed together in the future.

Diff without space:
https://github.com/go-gitea/gitea/pull/22831/files?diff=unified&w=1
models/issues/issue_xref.go
modules/templates/helper.go
templates/projects/view.tmpl
templates/repo/actions/runs_list.tmpl
templates/repo/issue/view_content/comments.tmpl
templates/repo/issue/view_content/pull.tmpl
templates/repo/issue/view_content/pull_merge_instruction.tmpl