diff --git a/app/views/preferences/_authentication.html.erb b/app/views/preferences/_authentication.html.erb index f2c610af..64afc8e7 100644 --- a/app/views/preferences/_authentication.html.erb +++ b/app/views/preferences/_authentication.html.erb @@ -1,8 +1,19 @@

<%= t('preferences.token_description') %>: <%= current_user.token %> +

+ +
+ <% # TODO: make remote AJAX call for new token %> -<%= button_to t('preferences.generate_new_token'), refresh_token_user_path(current_user), - :confirm => t('preferences.generate_new_token_confirm') %> + +<%= link_to( + t('preferences.generate_new_token'), + refresh_token_user_path( current_user ), + :method => :post, + :confirm => t('preferences.generate_new_token_confirm'), + :id=>'prefs_new_token') %> + +

<% if Tracks::Config.auth_schemes.length > 1 %> diff --git a/app/views/shared/_footer.rhtml b/app/views/shared/_footer.rhtml index 49a20da4..aacd2561 100644 --- a/app/views/shared/_footer.rhtml +++ b/app/views/shared/_footer.rhtml @@ -1,7 +1,7 @@