-<h2><%= t 'user.account.my settings' %></h2>
-
-<%= link_to t('user.account.return to profile'), :controller => 'user', :action => 'view', :display_name => @user.display_name %> |
-<%= link_to t('user.view.oauth settings'), :controller => 'oauth_clients', :action => 'index' %>
+<% content_for :heading do %>
+ <h2><%= t 'user.account.my settings' %></h2>
+ <ul class='secondary-actions clearfix'>
+ <li><%= link_to t('user.account.return to profile'), :controller => 'user', :action => 'view', :display_name => @user.display_name %></li>
+ <li><%= link_to t('user.view.oauth settings'), :controller => 'oauth_clients', :action => 'index' %></li>
+ </ul>
+<% end %>
<%= error_messages_for 'user' %>
<%= form_for :user, :html => { :multipart => true } do |f| %>
<td class="fieldName">
<%= t 'user.account.image' %>
</td>
- <td valign="top">
- <% if @user.image.file? %>
- <table id="accountImage">
- <tr>
- <td rowspan="3" valign="top"><%= user_image @user %></td>
- <td><%= radio_button_tag "image_action", "keep", true %></td>
- <td><%= t 'user.account.keep image' %></td>
- </tr>
- <tr>
- <td><%= radio_button_tag "image_action", "delete" %></td>
- <td><%= t 'user.account.delete image' %></td>
- </tr>
- <tr>
- <td><%= radio_button_tag "image_action", "new" %></td>
- <td><%= t 'user.account.replace image' %><br /><%= f.file_field :image, :onchange => "$('image_action_new').prop('checked', true)" %><br /><span class="minorNote"><%= t 'user.account.image size hint' %></span></td>
- </tr>
- </table>
- <% else %>
- <%= hidden_field_tag "image_action", "new" %>
- <%= t 'user.account.new image' %><br /><%= f.file_field :image %><br /><span class="minorNote"><%= t 'user.account.image size hint' %></span>
- <% end %>
+ <td class="accountImage">
+ <%= user_image @user %>
+ <table class="accountImage-options">
+ <% if @user.image.file? %>
+ <tr>
+ <td><%= radio_button_tag "image_action", "keep", !@user.image_use_gravatar %></td>
+ <td><%= t 'user.account.keep image' %></td>
+ </tr>
+ <% end %>
+ <% if @user.image.file? || @user.image_use_gravatar? %>
+ <tr>
+ <td><%= radio_button_tag "image_action", "delete" %></td>
+ <td><%= t 'user.account.delete image' %></td>
+ </tr>
+ <% end %>
+ <% if @user.image.file? %>
+ <tr>
+ <td><%= radio_button_tag "image_action", "new" %></td>
+ <td><%= t 'user.account.replace image' %><br /><%= f.file_field :image, :onchange => "$('#image_action_new').prop('checked', true)" %><br /><span class="minorNote"><%= t 'user.account.image size hint' %></span></td>
+ </tr>
+ <% else %>
+ <tr>
+ <td><%= radio_button_tag "image_action", "new" %></td>
+ <td><%= t 'user.account.new image' %><br /><%= f.file_field :image, :onchange => "$('#image_action_new').prop('checked', true)" %><br /><span class="minorNote"><%= t 'user.account.image size hint' %></span></td>
+ </tr>
+ <% end %>
+ <tr>
+ <td><%= radio_button_tag "image_action", "gravatar", @user.image_use_gravatar %></td>
+ <td><%= t 'user.account.gravatar.gravatar' %> <span class="minorNote">(<a href="<%= t 'user.account.gravatar.link' %>" target="_new"><%= t 'user.account.gravatar.link text' %></a>)</span></td>
+ </tr>
+ </table>
</td>
</tr>
<% content_for :head do %>
<%= javascript_include_tag "user" %>
<% end %>
- <%
- home = @user.home_lat && @user.home_lon
- data = {
- :lon => @user.home_lon || 0,
- :lat => @user.home_lat || 20,
- :zoom => home ? 12 : 1,
- :marker => !!home
- }
- %>
- <%= content_tag "div", "", :id => "map", :class => "user_map set_location", :data => data %>
+ <%= content_tag "div", "", :id => "map", :class => "content_map settings_map set_location" %>
</td>
</tr>
-
+
<tr>
<td></td>
<td class="submitButton"><%= submit_tag t('user.account.save changes button') %></td>
<h2><%= t 'user.account.public editing note.heading' %></h2>
<%= raw t 'user.account.public editing note.text' %>
<%= button_to t('user.account.make edits public button'), :action => :go_public %>
-<% end %>
+<% end %>
\ No newline at end of file