From this page you can create, modify and delete your personal
API tokens.
{{ .T "The Yozora API is the system through which developers can create applications to interact with Yozora.
If you're asked to fill out an API token from this page, be wary and only actually create the token if you really trust the owner of the application." | html }}
{{ $csrf := csrfGenerate .Context.User.ID }}
{{ $page := or (atoint (.Gin.Query "p")) 1 }}
{{ with .Get "tokens?p=%d&l=50" $page }}
{{ with .tokens }}
Privileges |
Description |
Last used |
Actions |
{{ range . }}
{{/* We are using printf with %.0f so that
it gets printed as if it was a normal int */}}
{{ printf "%.0f" .privileges }} |
{{ with .description }}{{ . }}{{ else }}(None){{ end }} |
{{ if ne (nativeTime .last_updated).Year 1970 }}{{ time .last_updated }}{{ else }}Never{{ end }} |
|
{{ end }}
{{ $left := gt $page 1 }}
{{ $right := eq (len .) 50 }}
{{ if or $left $right }}
|
{{ end }}
{{ end }}
{{ end }}