annotate 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
rev   line source
chris@1007 1
chris@1021 2 <% cache(:action => 'explore', :action_suffix => 'tags') do %>
chris@1010 3 <h2><%= l(:label_explore_projects) %></h2>
chris@1010 4 <div class="tags box">
chris@1010 5 <h3><%=l(:label_project_tags_all)%></h3>
chris@1010 6 <%= render :partial => 'projects/tagcloud' %>
chris@1010 7 </div>
chris@1021 8 <% end %>
chris@1021 9
chris@1007 10 <div class="splitcontentleft">
chris@1021 11 <% cache(:action => 'explore', :action_suffix => 'busy_institutions') do %>
chris@1010 12 <div class="institutions box">
chris@1010 13 <h3><%=l(:label_institutions_busy)%></h3>
chris@1010 14 <%= render :partial => 'activities/busy_institution' %>
chris@1010 15 </div>
chris@1021 16 <% end %>
chris@1007 17 <div class="projects box">
chris@1007 18 <h3><%=l(:label_project_latest)%></h3>
chris@1007 19 <%= render :partial => 'projects/latest' %>
chris@1007 20 </div>
chris@1007 21 </div>
chris@1010 22 <div class="splitcontentright">
chris@1021 23 <% cache(:action => 'explore', :action_suffix => 'busy_projects') do %>
chris@1007 24 <div class="projects box">
chris@1007 25 <h3><%=l(:label_projects_busy)%></h3>
chris@1007 26 <%= render :partial => 'activities/busy' %>
chris@1009 27 </div>
chris@1021 28 <% end %>
chris@1007 29 </div>