What variables are available to the link_account template? #1794

Closed
opened 2025-11-02 04:13:25 -06:00 by GiteaMirror · 1 comment
Owner

Originally created by @coolaj86 on GitHub (May 18, 2018).

As per https://github.com/go-gitea/gitea/issues/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?

Originally created by @coolaj86 on GitHub (May 18, 2018). As per https://github.com/go-gitea/gitea/issues/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?
GiteaMirror added the type/question label 2025-11-02 04:13:25 -06:00
Author
Owner

@wxiaoguang commented on GitHub (Jul 5, 2022):

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.

@wxiaoguang commented on GitHub (Jul 5, 2022): 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.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/gitea#1794