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/modules/templates
wxiaoguang 34dfc25b83
Make git clone URL could use current signed-in user (#33091)
close #33086

* Add a special value for "SSH_USER" setting: `(DOER_USERNAME)`
* Improve parseRepositoryURL and add tests (now it doesn't have hard
dependency on some setting values)

Many changes are just adding "ctx" and "doer" argument to functions.

By the way, improve app.example.ini, remove all `%(key)s` syntax, it
only makes messy and no user really cares about it.

Document: https://gitea.com/gitea/docs/pulls/138
1 month ago
..
eval Use a general Eval function for expressions in templates. (#23927) 2 years ago
scopedtmpl Replace `interface{}` with `any` (#25686) 2 years ago
vars Implement FSFE REUSE for golang files (#21840) 2 years ago
base.go Replace `util.SliceXxx` with `slices.Xxx` (#26958) 1 year ago
dynamic.go Use a general approach to access custom/static/builtin assets (#24022) 2 years ago
helper.go Remove some unnecessary template helpers (#33069) 2 months ago
helper_test.go [Feature] Private README.md for organization (#32872) 2 months ago
htmlrenderer.go Refactor template & test related code (#32938) 2 months ago
htmlrenderer_test.go Show friendly 500 error page to users and developers (#24110) 2 years ago
mailer.go Refactor "string truncate" (#32984) 2 months ago
static.go Use a general approach to access custom/static/builtin assets (#24022) 2 years ago
templates_bindata.go Implement FSFE REUSE for golang files (#21840) 2 years ago
util_avatar.go Refactor markup render system (#32533) 3 months ago
util_date.go Update golangci-lint to v1.62.2, fix issues (#32845) 2 months ago
util_date_legacy.go Refactor template ctx and render utils (#32422) 3 months ago
util_date_test.go Refactor DateUtils and merge TimeSince (#32409) 3 months ago
util_dict.go Use `Set[Type]` instead of `map[Type]bool/struct{}`. (#26804) 1 year ago
util_format.go Refactor template & test related code (#32938) 2 months ago
util_format_test.go Refactor template & test related code (#32938) 2 months ago
util_json.go Improve template helper (#24417) 2 years ago
util_misc.go Make git clone URL could use current signed-in user (#33091) 1 month ago
util_render.go Fix issue title rendering and refactor legacy function names (#32703) 2 months ago
util_render_legacy.go Refactor template ctx and render utils (#32422) 3 months ago
util_render_test.go Fix issue title rendering and refactor legacy function names (#32703) 2 months ago
util_slice.go Improve template helper functions: string/slice (#24266) 2 years ago
util_string.go Refactor "string truncate" (#32984) 2 months ago
util_test.go Improve template helper functions: string/slice (#24266) 2 years ago