diff options
author | Alexis Reigel <mail@koffeinfrei.org> | 2017-05-23 17:55:23 +0300 |
---|---|---|
committer | Alexis Reigel <mail@koffeinfrei.org> | 2017-05-24 23:29:59 +0300 |
commit | 30141169eca70e099c77da066cb51731bfa54ff6 (patch) | |
tree | f6b4437dbe170aa4114d61e54702ede6ec63df61 /app/views/profiles | |
parent | 4cd6fc6e3b7198903900b39c0ff3d9dbae216b21 (diff) |
remove dead code
Diffstat (limited to 'app/views/profiles')
-rw-r--r-- | app/views/profiles/accounts/show.html.haml | 13 |
1 files changed, 4 insertions, 9 deletions
diff --git a/app/views/profiles/accounts/show.html.haml b/app/views/profiles/accounts/show.html.haml index 73f33e69d68..b7da2b80873 100644 --- a/app/views/profiles/accounts/show.html.haml +++ b/app/views/profiles/accounts/show.html.haml @@ -16,18 +16,13 @@ .col-lg-9.private-tokens-reset .reset-action %p.cgray - - if current_user.private_token - = label_tag "private-token", "Private token", class: "label-light" - = text_field_tag "private-token", current_user.private_token, class: "form-control", readonly: true, onclick: "this.select()" - - else - %span You don't have one yet. Click generate to fix it. + = label_tag "private-token", "Private token", class: "label-light" + = text_field_tag "private-token", current_user.private_token, class: "form-control", readonly: true, onclick: "this.select()" %p.help-block Your private token is used to access the API and Atom feeds without username/password authentication. .prepend-top-default - - if current_user.private_token - = link_to 'Reset private token', reset_private_token_profile_path, method: :put, data: { confirm: "Are you sure?" }, class: "btn btn-default private-token" - - else - = f.submit 'Generate', class: "btn btn-default" + = link_to 'Reset private token', reset_private_token_profile_path, method: :put, data: { confirm: "Are you sure?" }, class: "btn btn-default private-token" + - if incoming_email_token_enabled? .reset-action %p.cgray |