Git with a cup of tea, painless self-hosted git service
Mirror for internal git.with.parts use
https://git.with.parts
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
wxiaoguang
fdbd646113
Group template helper functions, remove `Printf`, improve template error messages (#23982)
Follow #23328
Major changes:
* Group the function in `templates/help.go` by their purposes. It could
make future work easier.
* Remove the `Printf` helper function, there is already a builtin
`printf`.
* Remove `DiffStatsWidth`, replace with `Eval` in template
* Rename the `NewTextFuncMap` to `mailSubjectTextFuncMap`, it's for
subject text template only, no need to make it support HTML functions.
----
And fine tune template error messages, to make it more friendly to
developers and users.
![image](https://user-images.githubusercontent.com/2114189/230714245-4fd202d1-2b25-41b2-8be5-03c5fee45091.png)
![image](https://user-images.githubusercontent.com/2114189/230714277-66783577-2a03-49d5-8e8c-ceba5e07a2d4.png)
---------
Co-authored-by: silverwind <me@silverwind.io>
|
2 years ago |
.. |
access_log.go
|
Parse external request id from request headers, and print it in access log (#22906)
|
2 years ago |
api.go
|
Set `X-Gitea-Debug` header once (#23361)
|
2 years ago |
api_org.go
|
Implement FSFE REUSE for golang files (#21840)
|
2 years ago |
api_test.go
|
Implement FSFE REUSE for golang files (#21840)
|
2 years ago |
auth.go
|
Implement FSFE REUSE for golang files (#21840)
|
2 years ago |
captcha.go
|
Add new captcha: cloudflare turnstile (#22369)
|
2 years ago |
context.go
|
Group template helper functions, remove `Printf`, improve template error messages (#23982)
|
2 years ago |
csrf.go
|
Update gitea-vet to check FSFE REUSE (#22004)
|
2 years ago |
form.go
|
Implement FSFE REUSE for golang files (#21840)
|
2 years ago |
org.go
|
Add missing tabs to org projects page (#22705)
|
2 years ago |
package.go
|
Improve permission check of packages (#23879)
|
2 years ago |
pagination.go
|
Make branches list page operations remember current page (#23420)
|
2 years ago |
permission.go
|
Implement FSFE REUSE for golang files (#21840)
|
2 years ago |
private.go
|
Implement FSFE REUSE for golang files (#21840)
|
2 years ago |
repo.go
|
Ensure RSS icon is present on all repo tabs (#23904)
|
2 years ago |
response.go
|
Implement FSFE REUSE for golang files (#21840)
|
2 years ago |
utils.go
|
Implement FSFE REUSE for golang files (#21840)
|
2 years ago |
xsrf.go
|
Update gitea-vet to check FSFE REUSE (#22004)
|
2 years ago |
xsrf_test.go
|
Update gitea-vet to check FSFE REUSE (#22004)
|
2 years ago |