diff options
author | Morgan Bazalgette <git@howl.moe> | 2018-04-29 21:34:59 +0200 |
---|---|---|
committer | Lauris BH <lauris@nix.lv> | 2018-04-29 22:34:59 +0300 |
commit | fb8535e305217537498e274dd14c562a4ea7e80b (patch) | |
tree | e4a0a2a5b8c75f31cb73cbf0fda26a08f0bdd32b /templates/user | |
parent | 7ea4bfc56172faf588142ee5637f35c0344f7534 (diff) | |
download | gitea-fb8535e305217537498e274dd14c562a4ea7e80b.tar.gz gitea-fb8535e305217537498e274dd14c562a4ea7e80b.zip |
Make Generate New Token panel shown by default (#3832)
This is mostly a 'feel' change. The behaviour that is currently on the
access tokens pages is, as far as I know, not present in any other parts
of the frontend, and there's no real good reason to keep the 'Generate
New Token' panel hidden by default in my opinion.
Diffstat (limited to 'templates/user')
-rw-r--r-- | templates/user/settings/applications.tmpl | 36 |
1 files changed, 15 insertions, 21 deletions
diff --git a/templates/user/settings/applications.tmpl b/templates/user/settings/applications.tmpl index 66a011ac9a..4ad5eaa714 100644 --- a/templates/user/settings/applications.tmpl +++ b/templates/user/settings/applications.tmpl @@ -5,9 +5,6 @@ {{template "base/alert" .}} <h4 class="ui top attached header"> {{.i18n.Tr "settings.manage_access_token"}} - <div class="ui right"> - <div class="ui blue tiny show-panel button" data-panel="#add-access-token-panel">{{.i18n.Tr "settings.generate_new_token"}}</div> - </div> </h4> <div class="ui attached segment"> <div class="ui key list"> @@ -32,24 +29,21 @@ {{end}} </div> </div> - <br> - <div {{if not .HasError}}class="hide"{{end}} id="add-access-token-panel"> - <h4 class="ui top attached header"> - {{.i18n.Tr "settings.generate_new_token"}} - </h4> - <div class="ui attached segment"> - <form class="ui form ignore-dirty" action="{{.Link}}" method="post"> - {{.CsrfTokenHtml}} - <p>{{.i18n.Tr "settings.new_token_desc"}}</p> - <div class="field {{if .Err_Name}}error{{end}}"> - <label for="name">{{.i18n.Tr "settings.token_name"}}</label> - <input id="name" name="name" value="{{.name}}" autofocus required> - </div> - <button class="ui green button"> - {{.i18n.Tr "settings.generate_token"}} - </button> - </form> - </div> + <h4 class="ui top attached header"> + {{.i18n.Tr "settings.generate_new_token"}} + </h4> + <div class="ui attached segment"> + <p>{{.i18n.Tr "settings.new_token_desc"}}</p> + <form class="ui form ignore-dirty" action="{{.Link}}" method="post"> + {{.CsrfTokenHtml}} + <div class="field {{if .Err_Name}}error{{end}}"> + <label for="name">{{.i18n.Tr "settings.token_name"}}</label> + <input id="name" name="name" value="{{.name}}" autofocus required> + </div> + <button class="ui green button"> + {{.i18n.Tr "settings.generate_token"}} + </button> + </form> </div> </div> </div> |