annotate app/views/projects/explore.html.erb @ 1194:6676c0284df2 feature_564

Add "mature projects" box. This isn't good enough on its own, it's just a test -- we need this to inform other relationships
author Chris Cannam <chris.cannam@soundsoftware.ac.uk>
date Tue, 22 Jan 2013 17:03:50 +0000
parents d67ed1030451
children 17305097e652
rev   line source
chris@1041 1 <% content_for :header_tags do %>
chris@1041 2 <%= stylesheet_link_tag 'redmine_tags', :plugin => 'redmine_tags' %>
chris@1041 3 <% end %>
chris@1007 4
chris@1193 5 <div class="contextual">
chris@1193 6 <%= link_to(l(:label_project_new), {:controller => 'projects', :action => 'new'}, :class => 'icon icon-add') if User.current.allowed_to?(:add_project, nil, :global => true) %>
chris@1193 7 </div>
chris@1193 8
chris@1194 9 <h2><%= l(:label_explore_projects) %></h2>
chris@1194 10
chris@1032 11 <% cache(:action => 'explore', :action_suffix => 'tags', :expires_in => 1.hour) do %>
chris@1010 12 <div class="tags box">
chris@1010 13 <h3><%=l(:label_project_tags_all)%></h3>
chris@1010 14 <%= render :partial => 'projects/tagcloud' %>
chris@1010 15 </div>
chris@1021 16 <% end %>
chris@1021 17
chris@1007 18 <div class="splitcontentleft">
chris@1032 19 <% cache(:action => 'explore', :action_suffix => 'busy_institutions', :expires_in => 1.hour) do %>
chris@1010 20 <div class="institutions box">
chris@1010 21 <h3><%=l(:label_institutions_busy)%></h3>
chris@1010 22 <%= render :partial => 'activities/busy_institution' %>
chris@1189 23 <%= link_to l(:label_overall_activity), { :controller => 'activities', :action => 'index' }, :class => 'more' %>
chris@1010 24 </div>
chris@1021 25 <% end %>
chris@1007 26 <div class="projects box">
chris@1007 27 <h3><%=l(:label_project_latest)%></h3>
chris@1007 28 <%= render :partial => 'projects/latest' %>
chris@1189 29 <%= link_to l(:label_projects_more), { :controller => 'projects' }, :class => 'more' %>
chris@1007 30 </div>
chris@1007 31 </div>
chris@1010 32 <div class="splitcontentright">
chris@1032 33 <% cache(:action => 'explore', :action_suffix => 'busy_projects', :expires_in => 1.hour) do %>
chris@1007 34 <div class="projects box">
chris@1007 35 <h3><%=l(:label_projects_busy)%></h3>
chris@1007 36 <%= render :partial => 'activities/busy' %>
chris@1189 37 <%= link_to l(:label_overall_activity), { :controller => 'activities', :action => 'index' }, :class => 'more' %>
chris@1009 38 </div>
chris@1021 39 <% end %>
chris@1194 40 <% cache(:action => 'explore', :action_suffix => 'mature_projects', :expires_in => 1.hour) do %>
chris@1194 41 <div class="projects box">
chris@1194 42 <h3><%=l(:label_projects_mature)%></h3>
chris@1194 43 <%= render :partial => 'projects/mature' %>
chris@1194 44 </div>
chris@1194 45 <% end %>
chris@1007 46 </div>