_organization.rhtml
1.96 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
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
<tr>
<td colspan='2'>
<div class='ui-tabs'>
<ul>
<% if logged_in? && current_person.follows?(@profile) %>
<li class='tab'><a href='#profile-wall'><%= _('Wall') %></a></li>
<% end %>
<li class='tab'><a href='#profile-network'><%= _('What\'s new') %></a></li>
<li class='tab'><a href='#community-profile'><%= _('Profile') %></a></li>
</ul>
<% if logged_in? && current_person.follows?(@profile) %>
<%= render :partial => 'profile_wall' %>
<% end %>
<%= render :partial => 'profile_network' %>
<div id='community-profile'>
<table>
<tr>
<th colspan='2'><%= _('Basic information')%></th>
</tr>
<tr>
<td class='field-name'><%= _('Members') %></td>
<td>
<%= link_to profile.members.count, :controller => 'profile', :action => 'members' %>
</td>
</tr>
<%= display_field(_('Type:'), profile, :privacy_setting, true) %>
<%= display_field(_('Location:'), profile, :location, true) %>
<tr>
<td class='field-name'><%= _('Created at:') %></td>
<td><%= show_date(profile.created_at) %></td>
</tr>
<% if profile.kind_of?(Enterprise) && !profile.environment.enabled?('disable_products_for_enterprises') %>
<tr>
<td></td>
<td>
<%= link_to _('Products/Services'), :controller => 'catalog', :action => 'index' %>
</td>
</tr>
<% end %>
<tr>
<td class='field-name'><%= _('Administrators:') %></td>
<td>
<%= profile.admins.map { |admin| link_to(admin.short_name, admin.url)}.join(', ') %>
</td>
</tr>
<%= render :partial => 'common' %>
</table>
</div>
</div>
</td>
</tr>