X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/54aa89a4bf8118a3fdec2d60acba6aeb7beaa8c8..refs/heads/master:/app/views/users/show.html.erb
diff --git a/app/views/users/show.html.erb b/app/views/users/show.html.erb
index c73581b25..c168972aa 100644
--- a/app/views/users/show.html.erb
+++ b/app/views/users/show.html.erb
@@ -35,14 +35,14 @@
<% if current_user.blocks.exists? %>
- <%= link_to t(".blocks on me"), user_blocks_on_path(current_user) %>
+ <%= link_to t(".blocks on me"), user_received_blocks_path(current_user) %>
<%= number_with_delimiter(current_user.blocks.active.size) %>
<% end %>
<% if can?(:create, UserBlock) and current_user.blocks_created.exists? %>
- <%= link_to t(".blocks by me"), user_blocks_by_path(current_user) %>
+ <%= link_to t(".blocks by me"), user_issued_blocks_path(current_user) %>
<%= number_with_delimiter(current_user.blocks_created.active.size) %>
<% end %>
@@ -81,33 +81,33 @@
<%= link_to t(".comments"), diary_comments_path(@user) %>
<%= number_with_delimiter(@user.diary_comments.size) %>
-
- <% if current_user and current_user.friends_with?(@user) %>
- <%= link_to t(".remove as friend"), remove_friend_path(:display_name => @user.display_name), :method => :post %>
- <% elsif current_user %>
- <%= link_to t(".add as friend"), make_friend_path(:display_name => @user.display_name), :method => :post %>
- <% else %>
- <%= link_to t(".add as friend"), make_friend_path(:display_name => @user.display_name) %>
- <% end %>
-
+ <% if current_user %>
+
+ <% if current_user.friends_with?(@user) %>
+ <%= link_to t(".remove as friend"), remove_friend_path(:display_name => @user.display_name), :method => :post %>
+ <% else %>
+ <%= link_to t(".add as friend"), make_friend_path(:display_name => @user.display_name), :method => :post %>
+ <% end %>
+
+ <% end %>
<% if @user.blocks.exists? %>
- <%= link_to t(".block_history"), user_blocks_on_path(@user) %>
+ <%= link_to t(".block_history"), user_received_blocks_path(@user) %>
<%= number_with_delimiter(@user.blocks.active.size) %>
<% end %>
<% if @user.moderator? and @user.blocks_created.exists? %>
- <%= link_to t(".moderator_history"), user_blocks_by_path(@user) %>
+ <%= link_to t(".moderator_history"), user_issued_blocks_path(@user) %>
<%= number_with_delimiter(@user.blocks_created.active.size) %>
<% end %>
- <% if can?(:revoke_all, UserBlock) and @user.blocks.active.exists? %>
+ <% if can?(:destroy, UserBlock) and @user.blocks.active.exists? %>
- <%= link_to t(".revoke_all_blocks"), revoke_all_user_blocks_path(@user) %>
+ <%= link_to t(".revoke_all_blocks"), edit_user_received_blocks_path(@user) %>
<% end %>
@@ -217,12 +217,12 @@
- <%= t ".email address" %>
- <%= @user.email %>
- <% unless @user.creation_ip.nil? -%>
+ <% unless @user.creation_address.nil? -%>
- <%= t ".created from" %>
- - <%= link_to @user.creation_ip, users_path(:ip => @user.creation_ip) %>
+ - <%= link_to @user.creation_address, users_list_path(:ip => @user.creation_address) %>
<% end -%>
- <%= t ".status" %>
- - <%= link_to @user.status.capitalize, users_path(:status => @user.status) %>
+ - <%= link_to @user.status.capitalize, users_list_path(:status => @user.status) %>
- <%= t ".spam score" %>
- <%= @user.spam_score %>