]> git.openstreetmap.org Git - rails.git/blobdiff - app/views/users/show.html.erb
Move profile-related settings to their own form
[rails.git] / app / views / users / show.html.erb
index 302ec5bd3935db3d9a65dd8dd3beb39a02fa8e68..3974a2f9cf8a1ff92e4249a791d065690307d660 100644 (file)
 
     <div class="user-description richtext text-break"><%= @user.description.to_html %></div>
 
+    <% if current_user and @user.id == current_user.id %>
+      <div class="my-3">
+        <%= link_to t(".edit_profile"), edit_profile_path, :class => "btn btn-outline-primary" %>
+      </div>
+    <% end %>
+
   </div>
 
   <% if current_user and current_user.administrator? -%>