gitea/templates
wxiaoguang c5901b622d
Avoid unnecessary 500 panic when a commit doesn't exist (#28719)
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)
2024-01-07 18:20:22 +08:00
..
admin Added instance-level variables (#28115) 2023-12-25 07:28:59 +00:00
api/packages/pypi Remove incorrect HTML self close tag (#23748) 2023-03-27 18:05:51 +02:00
base Avoid unnecessary 500 panic when a commit doesn't exist (#28719) 2024-01-07 18:20:22 +08:00
code Fix 500 error of searching commits (#28576) 2023-12-21 23:09:14 +00:00
custom Add footer extra links template (#9576) 2020-01-03 20:41:56 +02:00
devtest Improve dropdown button alignment and fix hover bug (#27632) 2023-10-16 07:26:08 +00:00
explore Add links to owner home page in explore (#28341) 2024-01-05 03:34:35 +00:00
mail Update team invitation email link (#26550) 2023-08-31 16:26:13 +00:00
org Issue fixes for RSS feed improvements (#28380) 2023-12-07 03:01:32 +00:00
package Fix long package version names overflowing (#28619) 2023-12-30 07:42:16 +00:00
projects Use full width for project boards (#28225) 2023-11-27 17:43:52 +00:00
repo Add merge arrow direction and update styling (#28523) 2024-01-05 17:38:56 +00:00
shared Fix tooltip of variable edit button (#28681) 2024-01-03 06:25:19 +00:00
status Clean up template locale usage (#27856) 2023-10-31 22:11:48 +08:00
swagger Add get actions runner registration token for API routes, repo, org, user and global level (#27144) 2023-12-27 07:57:54 +00:00
user Make template DateTime show proper tooltip (#28677) 2024-01-02 20:09:18 +01:00
webhook Extract common code to new template (#26933) 2023-09-06 10:11:06 +00:00
home.tmpl Fix more "locale" usages (#27259) 2023-09-25 20:42:40 +08:00
install.tmpl Fix more "locale" usages (#27259) 2023-09-25 20:42:40 +08:00
post-install.tmpl Always use ctx.Locale.Tr inside templates (#27231) 2023-09-25 08:56:50 +00:00