]> git.openstreetmap.org Git - rails.git/blob - app/views/profiles/images/show.html.erb
Remove translations using mediawiki magic words
[rails.git] / app / views / profiles / images / show.html.erb
1 <% content_for :head do %>
2   <%= javascript_include_tag "user" %>
3 <% end %>
4
5 <% content_for :heading_class, "pb-0" %>
6
7 <% content_for :heading do %>
8   <h1><%= t ".title" %></h1>
9   <%= render :partial => "navigation" %>
10 <% end %>
11
12 <%= bootstrap_form_for current_user, :url => { :action => :update } do |f| %>
13   <div class="row">
14     <div class="col-sm-2">
15       <%= user_image current_user %>
16     </div>
17     <div class="col-sm-10">
18       <% if current_user.avatar.attached? %>
19         <%= f.radio_button "avatar_action", "keep", :name => "avatar_action", :label => t(".keep image"), :checked => !current_user.image_use_gravatar %>
20       <% end %>
21       <% if current_user.avatar.attached? || current_user.image_use_gravatar? %>
22         <%= f.radio_button "avatar_action", "delete", :name => "avatar_action", :label => t(".delete image"), :checked => false %>
23       <% end %>
24       <% if current_user.avatar.attached? %>
25         <%= f.form_group :help => t(".image size hint"), :class => "mb-0" do %>
26           <%= f.radio_button "avatar_action", "new", :name => "avatar_action", :label => t(".replace image"), :checked => false %>
27           <%= f.file_field :avatar, :hide_label => true, :wrapper => { :class => "mb-0" } %>
28         <% end %>
29       <% else %>
30         <%= f.form_group :help => t(".image size hint"), :class => "mb-0" do %>
31           <%= f.radio_button "avatar_action", "new", :name => "avatar_action", :label => t(".new image"), :checked => false %>
32           <%= f.file_field :avatar, :hide_label => true, :wrapper => { :class => "mb-0" } %>
33         <% end %>
34       <% end %>
35       <%= f.form_group :help => link_to(t(".gravatar.what_is_gravatar"), t(".gravatar.link")) do %>
36         <%= f.radio_button "avatar_action", "gravatar", :name => "avatar_action", :label => t(".gravatar.gravatar"), :checked => current_user.image_use_gravatar %>
37       <% end %>
38     </div>
39   </div>
40
41   <%= f.primary t(".save") %>
42   <%= link_to t(".cancel"), current_user, :class => "btn btn-link" %>
43 <% end %>