Commit 30141169 authored by Alexis Reigel's avatar Alexis Reigel

remove dead code

parent 4cd6fc6e
...@@ -16,18 +16,13 @@ ...@@ -16,18 +16,13 @@
.col-lg-9.private-tokens-reset .col-lg-9.private-tokens-reset
.reset-action .reset-action
%p.cgray %p.cgray
- if current_user.private_token = label_tag "private-token", "Private token", class: "label-light"
= 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()"
= 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.
%p.help-block %p.help-block
Your private token is used to access the API and Atom feeds without username/password authentication. Your private token is used to access the API and Atom feeds without username/password authentication.
.prepend-top-default .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"
= 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"
- if incoming_email_token_enabled? - if incoming_email_token_enabled?
.reset-action .reset-action
%p.cgray %p.cgray
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment