Mercurial > hg > soundsoftware-site
comparison app/views/projects/explore.html.erb @ 1213:17305097e652 cannam
Three-column explore layout
author | Chris Cannam <chris.cannam@soundsoftware.ac.uk> |
---|---|
date | Tue, 12 Mar 2013 10:21:36 +0000 |
parents | 6676c0284df2 |
children | f9a81a1a4425 |
comparison
equal
deleted
inserted
replaced
1207:d6d53a77f058 | 1213:17305097e652 |
---|---|
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) %> | 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) %> |
7 </div> | 7 </div> |
8 | 8 |
9 <h2><%= l(:label_explore_projects) %></h2> | 9 <h2><%= l(:label_explore_projects) %></h2> |
10 | 10 |
11 <div class="threecolumnleft"> | |
11 <% cache(:action => 'explore', :action_suffix => 'tags', :expires_in => 1.hour) do %> | 12 <% cache(:action => 'explore', :action_suffix => 'tags', :expires_in => 1.hour) do %> |
12 <div class="tags box"> | 13 <div class="tags box"> |
13 <h3><%=l(:label_project_tags_all)%></h3> | 14 <h3><%=l(:label_project_tags_all)%></h3> |
14 <%= render :partial => 'projects/tagcloud' %> | 15 <%= render :partial => 'projects/tagcloud' %> |
15 </div> | 16 </div> |
16 <% end %> | 17 <% end %> |
18 </div> | |
17 | 19 |
18 <div class="splitcontentleft"> | 20 <div class="threecolumnright"> |
21 <% cache(:action => 'explore', :action_suffix => 'mature_projects', :expires_in => 1.hour) do %> | |
22 <div class="projects box"> | |
23 <h3><%=l(:label_projects_mature)%></h3> | |
24 <%= render :partial => 'projects/mature' %> | |
25 </div> | |
26 <% end %> | |
27 </div> | |
28 | |
29 <div class="threecolumnleft"> | |
19 <% cache(:action => 'explore', :action_suffix => 'busy_institutions', :expires_in => 1.hour) do %> | 30 <% cache(:action => 'explore', :action_suffix => 'busy_institutions', :expires_in => 1.hour) do %> |
20 <div class="institutions box"> | 31 <div class="institutions box"> |
21 <h3><%=l(:label_institutions_busy)%></h3> | 32 <h3><%=l(:label_institutions_busy)%></h3> |
22 <%= render :partial => 'activities/busy_institution' %> | 33 <%= render :partial => 'activities/busy_institution' %> |
23 <%= link_to l(:label_overall_activity), { :controller => 'activities', :action => 'index' }, :class => 'more' %> | 34 <%= link_to l(:label_overall_activity), { :controller => 'activities', :action => 'index' }, :class => 'more' %> |
24 </div> | 35 </div> |
25 <% end %> | 36 <% end %> |
37 </div> | |
38 | |
39 <div class="threecolumnright"> | |
26 <div class="projects box"> | 40 <div class="projects box"> |
27 <h3><%=l(:label_project_latest)%></h3> | 41 <h3><%=l(:label_project_latest)%></h3> |
28 <%= render :partial => 'projects/latest' %> | 42 <%= render :partial => 'projects/latest' %> |
29 <%= link_to l(:label_projects_more), { :controller => 'projects' }, :class => 'more' %> | 43 <%= link_to l(:label_projects_more), { :controller => 'projects' }, :class => 'more' %> |
30 </div> | 44 </div> |
31 </div> | 45 </div> |
32 <div class="splitcontentright"> | 46 |
47 <div class="threecolumnmid"> | |
33 <% cache(:action => 'explore', :action_suffix => 'busy_projects', :expires_in => 1.hour) do %> | 48 <% cache(:action => 'explore', :action_suffix => 'busy_projects', :expires_in => 1.hour) do %> |
34 <div class="projects box"> | 49 <div class="projects box"> |
35 <h3><%=l(:label_projects_busy)%></h3> | 50 <h3><%=l(:label_projects_busy)%></h3> |
36 <%= render :partial => 'activities/busy' %> | 51 <%= render :partial => 'activities/busy' %> |
37 <%= link_to l(:label_overall_activity), { :controller => 'activities', :action => 'index' }, :class => 'more' %> | 52 <%= link_to l(:label_overall_activity), { :controller => 'activities', :action => 'index' }, :class => 'more' %> |
38 </div> | 53 </div> |
39 <% end %> | 54 <% end %> |
40 <% cache(:action => 'explore', :action_suffix => 'mature_projects', :expires_in => 1.hour) do %> | |
41 <div class="projects box"> | |
42 <h3><%=l(:label_projects_mature)%></h3> | |
43 <%= render :partial => 'projects/mature' %> | |
44 </div> | |
45 <% end %> | |
46 </div> | 55 </div> |
56 | |
57 <% html_title(l(:label_explore_projects)) -%> |