comparison app/views/projects/explore.html.erb @ 1021:967fb7e62b1d browsing

Include only public projects in busy institutions / projects queries, so results can be cached (the tag cloud was already public projects only). Introduce tentatively some cacheing thingies
author Chris Cannam <chris.cannam@soundsoftware.ac.uk>
date Tue, 13 Nov 2012 10:35:23 +0000
parents 76a677c96bce
children ff1556010d8b
comparison
equal deleted inserted replaced
1020:e816ffefcb71 1021:967fb7e62b1d
1 1
2 <% cache(:action => 'explore', :action_suffix => 'tags') do %>
2 <h2><%= l(:label_explore_projects) %></h2> 3 <h2><%= l(:label_explore_projects) %></h2>
3
4 <div class="tags box"> 4 <div class="tags box">
5 <h3><%=l(:label_project_tags_all)%></h3> 5 <h3><%=l(:label_project_tags_all)%></h3>
6 <%= render :partial => 'projects/tagcloud' %> 6 <%= render :partial => 'projects/tagcloud' %>
7 </div> 7 </div>
8 <% end %>
9
8 <div class="splitcontentleft"> 10 <div class="splitcontentleft">
11 <% cache(:action => 'explore', :action_suffix => 'busy_institutions') do %>
9 <div class="institutions box"> 12 <div class="institutions box">
10 <h3><%=l(:label_institutions_busy)%></h3> 13 <h3><%=l(:label_institutions_busy)%></h3>
11 <%= render :partial => 'activities/busy_institution' %> 14 <%= render :partial => 'activities/busy_institution' %>
12 </div> 15 </div>
16 <% end %>
13 <div class="projects box"> 17 <div class="projects box">
14 <h3><%=l(:label_project_latest)%></h3> 18 <h3><%=l(:label_project_latest)%></h3>
15 <%= render :partial => 'projects/latest' %> 19 <%= render :partial => 'projects/latest' %>
16 </div> 20 </div>
17 </div> 21 </div>
18 <div class="splitcontentright"> 22 <div class="splitcontentright">
23 <% cache(:action => 'explore', :action_suffix => 'busy_projects') do %>
19 <div class="projects box"> 24 <div class="projects box">
20 <h3><%=l(:label_projects_busy)%></h3> 25 <h3><%=l(:label_projects_busy)%></h3>
21 <%= render :partial => 'activities/busy' %> 26 <%= render :partial => 'activities/busy' %>
22 </div> 27 </div>
28 <% end %>
23 </div> 29 </div>