1
0
Fork 0
mirror of https://codeberg.org/forgejo/forgejo.git synced 2025-03-29 00:40:11 +00:00
forgejo/templates/base
wxiaoguang c5901b622d
Avoid unnecessary 500 panic when a commit doesn't exist ()
In , 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)
2024-01-07 18:20:22 +08:00
..
alert.tmpl Clean up polluted styles and remove dead CSS code () 2023-05-03 14:32:10 -04:00
alert_details.tmpl Enforce tab indentation in templates () 2021-04-10 23:46:37 -04:00
disable_form_autofill.tmpl Disable form autofill () 2021-10-19 01:08:41 +03:00
footer.tmpl Start using template context function () 2023-08-08 01:22:47 +00:00
footer_content.tmpl Fix more "locale" usages () 2023-09-25 20:42:40 +08:00
head.tmpl Rename the default themes to gitea-light, gitea-dark, gitea-auto () 2023-10-06 09:46:36 +02:00
head_navbar.tmpl Fix more "locale" usages () 2023-09-25 20:42:40 +08:00
head_opengraph.tmpl Avoid unnecessary 500 panic when a commit doesn't exist () 2024-01-07 18:20:22 +08:00
head_script.tmpl Always use ctx.Locale.Tr inside templates () 2023-09-25 08:56:50 +00:00
head_style.tmpl Rename the default themes to gitea-light, gitea-dark, gitea-auto () 2023-10-06 09:46:36 +02:00
modal_actions_confirm.tmpl cleanup locale function usage () 2023-09-24 20:31:58 +00:00
paginate.tmpl Always use ctx.Locale.Tr inside templates () 2023-09-25 08:56:50 +00:00