Temporarily disable PATs until next release (#24527)

This might be a bit contentious, but I think we should try to limit the
impact of deprecating scoped PATs with the rewrite proposed here we're
working on for v1.20: https://github.com/go-gitea/gitea/issues/24501

We should have a PR opened shortly to re-scope the routes.
This commit is contained in:
Kyle D 2023-05-05 11:41:44 -04:00 committed by GitHub
parent ea1afb945d
commit 09dd4b42c7
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -18,7 +18,9 @@
</div> </div>
<i class="text {{if .HasRecentActivity}}green{{end}}" {{if .HasRecentActivity}}data-tooltip-content="{{$.locale.Tr "settings.token_state_desc"}}"{{end}}>{{svg "fontawesome-send" 36}}</i> <i class="text {{if .HasRecentActivity}}green{{end}}" {{if .HasRecentActivity}}data-tooltip-content="{{$.locale.Tr "settings.token_state_desc"}}"{{end}}>{{svg "fontawesome-send" 36}}</i>
<div class="content"> <div class="content">
<details><summary><strong>{{.Name}}</strong></summary> <!--Temporarily disable-->
<strong>{{.Name}}</strong>
<details class="gt-hidden"><summary><strong>{{.Name}}</strong></summary>
<p class="gt-my-2">{{$.locale.Tr "settings.scopes_list"}}</p> <p class="gt-my-2">{{$.locale.Tr "settings.scopes_list"}}</p>
<ul class="gt-my-2"> <ul class="gt-my-2">
{{range .Scope.StringSlice}} {{range .Scope.StringSlice}}
@ -45,7 +47,8 @@
<label for="name">{{.locale.Tr "settings.token_name"}}</label> <label for="name">{{.locale.Tr "settings.token_name"}}</label>
<input id="name" name="name" value="{{.name}}" autofocus required> <input id="name" name="name" value="{{.name}}" autofocus required>
</div> </div>
<details class="ui optional field"> <!--Temporarily disable-->
<details class="gt-hidden ui optional field">
<summary class="gt-p-2"> <summary class="gt-p-2">
{{.locale.Tr "settings.select_scopes"}} {{.locale.Tr "settings.select_scopes"}}
</summary> </summary>