<% if profile.enterprise? && !profile.enabled? && !profile.blocks.select {|b| b.class == DisabledEnterpriseMessageBlock}.any? %>
<%= environment.message_for_disabled_enterprise %>
<% end %>

<%= profile.name %>

<% if @action %> <%= render :partial => 'private_profile' %> <% end %> <%= render :partial => partial_for_class(profile.class) %> <% unless @action %> <% cache_timeout(profile.identifier + '-profile-general-info', 4.hours.from_now) do %> <% profile.blogs.each do |blog| %> <% end %> <% profile.image_galleries.each do |gallery| %> <% end %> <% if !environment.enabled?('disable_categories') && !profile.interests.empty? %> <% profile.interests.each do |item| %> <% end %> <% end %> <% end %> <% end %>
<%= _('Content') %>
<%= blog.name + ':' %> <%= link_to(n_('One post', '%{num} posts', blog.posts.count) % { :num => blog.posts.count }, blog.url) %>
<%= gallery.name + ':' %> <%= link_to(n_('One picture', '%{num} pictures', gallery.images.count) % { :num => gallery.images.count }, gallery.url) %>
<%= _('Events:') %> <%= link_to profile.events.count, :controller => 'events', :action => 'events' %>
<%= _('Tags:') %> <%= tag_cloud @tags, :id, { :action => 'tag' }, :max_size => 18, :min_size => 10%>
<%= _('Interests') %>
<%= link_to item.name, :controller => 'search', :action => 'category_index', :category_path => item.explode_path %>