<%= link_to t('user.view.my traces'), :controller => 'trace', :action=>'mine' %>
<span class='count-number'><%= number_with_delimiter(@user.traces.size) %></span>
|
+ <%= link_to t('user.view.my notes'), :controller => 'notes', :action=> 'mine' %>
+ |
<%= link_to t('user.view.my diary'), :controller => 'diary_entry', :action => 'list', :display_name => @user.display_name %>
+ <span class='count-number'><%= number_with_delimiter(@user.diary_entries.size) %></span>
|
<%= link_to t('user.view.my comments' ), :controller => 'diary_entry', :action => 'comments', :display_name => @user.display_name %>
|
<%= link_to t('user.view.traces'), :controller => 'trace', :action => 'list', :display_name => @this_user.display_name %>
<span class='count-number'><%= number_with_delimiter(@this_user.traces.size) %></span>
|
+ <%= link_to t('user.view.notes'), :controller => 'notes', :action=> 'mine' %>
+ |
<!-- Displaying another user's profile page -->
<%= link_to t('user.view.send message'), :controller => 'message', :action => 'new', :display_name => @this_user.display_name %>
|
<%= link_to t('user.view.diary'), :controller => 'diary_entry', :action => 'list', :display_name => @this_user.display_name %>
+ <span class='count-number'><%= number_with_delimiter(@this_user.diary_entries.size) %></span>
|
<%= link_to t('user.view.comments'), :controller => 'diary_entry', :action => 'comments', :display_name => @this_user.display_name %>
|
</p>
<% if @user and @user.administrator? -%>
- <p><b><%= t 'user.view.email address' %></b> <%= @this_user.email %></p>
+ <p><b><%= t 'user.view.email address' %></b> <%= @this_user.email %></p>
<% unless @this_user.creation_ip.nil? -%>
<p><b><%= t 'user.view.created from' %></b> <%= @this_user.creation_ip %></p>
<% end -%>
<%= javascript_include_tag "user" %>
<% end %>
<%
- data = {
+ user_data = {
:lon => @user.home_lon,
:lat => @user.home_lat,
- :zoom => 12,
- :marker => {
- :description => render(:partial => "popup", :object => @user, :locals => {:type => "your location"})
- }
+ :icon => image_path("marker-red.png"),
+ :description => render(:partial => "popup", :object => @user, :locals => {:type => "your location"})
}
%>
- <%= content_tag "div", "", :id => "map", :class => "user_map", :data => data %>
+ <%= content_tag "div", "", :id => "map", :class => "user_map", :data => {:user => user_data} %>
<% end %>
<% friends = @this_user.friends.collect { |f| f.befriendee } %>