<% content_for :heading do %>
<h1><%= t 'user.account.my settings' %></h1>
<ul class='secondary-actions clearfix'>
- <li><%= link_to t('user.account.return to profile'), :controller => 'user', :action => 'view', :display_name => current_user.display_name %></li>
+ <li><%= link_to t('user.account.return to profile'), user_path(current_user) %></li>
<li><%= link_to t('user.view.oauth settings'), :controller => 'oauth_clients', :action => 'index' %></li>
</ul>
<% end %>
<%= t 'user.account.replace image' %>
<span class="form-help deemphasize"><%= t 'user.account.image size hint' %></span>
</label>
- <%= f.file_field :image, :onchange => "$('#image_action_new').prop('checked', true)" %>
+ <%= f.file_field :image %>
</li>
<% else %>
<li>
<%= t 'user.account.new image' %>
<span class="form-help deemphasize"><%= t 'user.account.image size hint' %></span>
</label>
- <%= f.file_field :image, :onchange => "$('#image_action_new').prop('checked', true)" %>
+ <%= f.file_field :image %>
</li>
<% end %>
<li>