X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/a9b00e16e70707e398d475352d68ed9da86dec3b..536dee8fc7f28ab2fc10a9e0873f33b649ad424f:/app/views/users/show.html.erb diff --git a/app/views/users/show.html.erb b/app/views/users/show.html.erb index 440d68874..5e7883799 100644 --- a/app/views/users/show.html.erb +++ b/app/views/users/show.html.erb @@ -2,9 +2,9 @@
<%= user_image @user %>
-

<%= @user.display_name %><%= role_icons(@user) %>

+

<%= @user.display_name %> <%= role_icons(@user) %>

<% if current_user and @user.id == current_user.id %> - +
-
<%= @user.description.to_html %>
+
<%= @user.description.to_html %>
+ + <% if current_user and @user.id == current_user.id %> +
+ <%= link_to t(".edit_profile"), edit_profile_path, :class => "btn btn-outline-primary" %> +
+ <% end %>
@@ -185,7 +191,7 @@
<% if @user.home_lat.nil? or @user.home_lon.nil? %>
-

<%= t(".if_set_location_html", :settings_link => (link_to t(".settings_link_text"), :controller => "users", :action => "account", :display_name => current_user.display_name)) %>

+

<%= t(".set_location_html", :edit_profile_url => edit_profile_path) %>

<% else %> <% content_for :head do %>