index.rhtml
1.45 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
<% if profile.enterprise? and !profile.enabled? and !profile.blocks.select {|b| b.class == DisabledEnterpriseMessageBlock}.any? %>
<div id='profile-disabled'>
<%= environment.message_for_disabled_enterprise %>
</div>
<% end %>
<h2><%= _("%s's profile") % profile.identifier %></h2>
<ul>
<li>
<strong><%= _('Name:') %></strong>
<%= profile.name %>
</li>
<li>
<strong><%= _('Homepage:') %></strong>
<%= link_to url_for(profile.url), profile.url %>
</li>
<%# FIXME %>
<% if profile.kind_of? Person %>
<% if profile.friends.include?(user) %>
<li>
<strong><%= _('e-Mail:') %></strong>
<%= content_tag 'a', profile.email, :href => 'mailto:'+profile.email %>
</li>
<% end %>
<li><%= link_to _('Friends'), :action => 'friends' %></li>
<li><%= link_to __('Communities'), :action => 'communities' %></li>
<li><%= link_to __('Enterprises'), :action => 'enterprises' %></li>
<% end %>
<% if profile.kind_of? Organization %>
<li><%= link_to _('Members'), :action => 'members' %></li>
<% end %>
<% if profile.kind_of?(Enterprise) && !profile.environment.enabled?('disable_products_for_enterprises') %>
<li><%= link_to _('Products/Services'), :controller => 'catalog', :action => 'index' %></li>
<% end %>
<li>
<%= link_to _('Site map'), :action => 'sitemap' %>
</li>
<li>
<%= _('Tags:') %>
<%= tag_cloud @tags, :id, { :action => 'tag' }, :max_size => 18, :min_size => 10%>
</li>
</ul>