You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
gitea/templates/base
Giteabot 2399b4d483
Avoid unnecessary 500 panic when a commit doesn't exist (#28719) (#28721)
Backport #28719 by wxiaoguang

In #26851, it assumed that `Commit` always exists when
`PageIsDiff==true`.

But for a 404 page, the `Commit` doesn't exist, so the following code
would cause panic because nil value can't be passed as string parameter
to `IsMultilineCommitMessage(string)` (or the StringUtils.Cut in later
PRs)

Co-authored-by: wxiaoguang <wxiaoguang@gmail.com>
1 year ago
..
alert.tmpl Clean up polluted styles and remove dead CSS code (#24497) 2 years ago
alert_details.tmpl Enforce tab indentation in templates (#15289) 4 years ago
disable_form_autofill.tmpl Disable form autofill (#17291) 3 years ago
footer.tmpl Start using template context function (#26254) 2 years ago
footer_content.tmpl Backport ctx locale refactoring manually (#27231) (#27259) (#27260) 1 year ago
head.tmpl Improve opengraph previews (#26851) 1 year ago
head_navbar.tmpl Backport ctx locale refactoring manually (#27231) (#27259) (#27260) 1 year ago
head_opengraph.tmpl Avoid unnecessary 500 panic when a commit doesn't exist (#28719) (#28721) 1 year ago
head_script.tmpl Backport ctx locale refactoring manually (#27231) (#27259) (#27260) 1 year ago
head_style.tmpl Remove meta tags `theme-color` and `default-theme` (#24960) 2 years ago
modal_actions_confirm.tmpl cleanup locale function usage (#27227) (#27240) 1 year ago
paginate.tmpl Backport ctx locale refactoring manually (#27231) (#27259) (#27260) 1 year ago