<%= t('.users_profile', :full_name => @user.full_name) %>
- <%= t('.full_name') %>
- <%= @user.full_name %>
<% if current_user.can_see_email?(@user) %>
- <%= t('.email') %>
- <%= @user.email %>
<% end %>
<% if @user.respond_to?(:accounts) %>
- <%= t('.accounts') %>
-
<% if @user.accounts.empty? %>
<%= t('.no_accounts') %>
<% else %>
<% @user.accounts.each do |account| %>
-
<% if current_user.can_see_account?(account) %>
<%= link_to account.name, account_path(account) %>
<% else %>
<%= account.name %>
<% end %>
<% end %>
<% end %>
<% end %>
<% if current_user.can_edit_profile?(@user) %>
- <%= link_to t('.edit_profile'), edit_user_path(@user) %>
<% end %>