add cucumber scenarios for new preferences

This commit is contained in:
Reinier Balt 2011-08-18 12:48:59 +02:00
parent 555311b681
commit 40a7cc2d3a
9 changed files with 70 additions and 11 deletions

View file

@ -1,8 +1,19 @@
<label><%= t('preferences.token_header') %></label><br/><br/>
<%= t('preferences.token_description') %>: <span class="highlight"><%= current_user.token %></span>
<br/><br/>
<div class="pref_new_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') %>
</div>
<br/>
<% if Tracks::Config.auth_schemes.length > 1 %>