index.rhtml
1.05 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
<% if profile.enterprise? && !profile.enabled? && !profile.blocks.select {|b| b.class == DisabledEnterpriseMessageBlock}.any? %>
<div id='profile-disabled'>
<%= environment.message_for_disabled_enterprise %>
</div>
<% end %>
<h1><%= _("%s's profile") % profile.name %></h1>
<table class='profile'>
<%= render :partial => partial_for_class(profile.class) %>
<% cache_timeout(profile.identifier + '-profile-general-info', 4.hours.from_now) do %>
<tr>
<th colspan='2'>
<%= _('Content') %>
</th>
</tr>
<tr>
<td>
<%= _('Content published:') %>
</td>
<td>
<%= link_to _('Site map'), :controller => 'profile', :action => 'sitemap' %>
</td>
</tr>
<tr>
<td>
</td>
<td>
<%= link_to _('Events'), :controller => 'events', :action => 'events' %>
</td>
</tr>
<tr>
<td>
<%= _('Tags:') %>
</td>
<td>
<%= tag_cloud @tags, :id, { :action => 'tag' }, :max_size => 18, :min_size => 10%>
</td>
</tr>
<% end %>
</table>