Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

What variables are available to the link_account template? #3987

Closed
coolaj86 opened this issue May 18, 2018 · 1 comment
Closed

What variables are available to the link_account template? #3987

coolaj86 opened this issue May 18, 2018 · 1 comment
Labels
type/question Issue needs no code to be fixed, only a description on how to fix it yourself.

Comments

@coolaj86
Copy link
Contributor

coolaj86 commented May 18, 2018

As per #3837 I'd like to update the link_account template to give a clearer message.

For example:

It appears that this is you first time logging in with <<provider>> as <<username>>.
Is that right?

[[ No, I'd like to link to my existing <<sitename>> account ]]

[[ Yes, Let me set a backup password for <<sitename>> ]] 

Where might I find the documentation to know what's available on that page?

@lunny lunny added the type/proposal The new feature has not been accepted yet but needs to be discussed first. label May 18, 2018
@techknowlogick techknowlogick added type/question Issue needs no code to be fixed, only a description on how to fix it yourself. and removed type/proposal The new feature has not been accepted yet but needs to be discussed first. labels Dec 9, 2020
@wxiaoguang
Copy link
Contributor

IMO the variables are in the render context data, no document. You could refer to the code context.

And it's not feasible to write documents for every template variable at the moment, the code itself should tell developers how it works in most cases. If something is unclear, either use a better/clearer variable name, or add enough comments.

@go-gitea go-gitea locked and limited conversation to collaborators May 3, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
type/question Issue needs no code to be fixed, only a description on how to fix it yourself.
Projects
None yet
Development

No branches or pull requests

4 participants