]> source.dussan.org Git - gitea.git/commitdiff
Temporarily disable PATs until next release (#24527)
authorKyle D <kdumontnu@gmail.com>
Fri, 5 May 2023 15:41:44 +0000 (11:41 -0400)
committerGitHub <noreply@github.com>
Fri, 5 May 2023 15:41:44 +0000 (11:41 -0400)
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.

templates/user/settings/applications.tmpl

index a9ca652564241d0ca12b889db5dd5a4081dea8d7..39ea90e92a053474eedd04a418356239a5228cc0 100644 (file)
@@ -18,7 +18,9 @@
                                                </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>
                                                <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>
                                                                <ul class="gt-my-2">
                                                                {{range .Scope.StringSlice}}
@@ -45,7 +47,8 @@
                                        <label for="name">{{.locale.Tr "settings.token_name"}}</label>
                                        <input id="name" name="name" value="{{.name}}" autofocus required>
                                </div>
-                               <details class="ui optional field">
+                               <!--Temporarily disable-->
+                               <details class="gt-hidden ui optional field">
                                        <summary class="gt-p-2">
                                                {{.locale.Tr "settings.select_scopes"}}
                                        </summary>