comparison app/views/projects/explore.html.erb @ 1193:d67ed1030451 feature_564

Add new-project link to Explore page
author Chris Cannam <chris.cannam@soundsoftware.ac.uk>
date Tue, 22 Jan 2013 16:54:14 +0000
parents 3e874cee63af
children 6676c0284df2
comparison
equal deleted inserted replaced
1192:3c9ca27c2d3d 1193:d67ed1030451
1 <% content_for :header_tags do %> 1 <% content_for :header_tags do %>
2 <%= stylesheet_link_tag 'redmine_tags', :plugin => 'redmine_tags' %> 2 <%= stylesheet_link_tag 'redmine_tags', :plugin => 'redmine_tags' %>
3 <% end %> 3 <% end %>
4 4
5 <div class="contextual">
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>
8
5 <% cache(:action => 'explore', :action_suffix => 'tags', :expires_in => 1.hour) do %> 9 <% cache(:action => 'explore', :action_suffix => 'tags', :expires_in => 1.hour) do %>
10
6 <h2><%= l(:label_explore_projects) %></h2> 11 <h2><%= l(:label_explore_projects) %></h2>
7 <div class="tags box"> 12 <div class="tags box">
8 <h3><%=l(:label_project_tags_all)%></h3> 13 <h3><%=l(:label_project_tags_all)%></h3>
9 <%= render :partial => 'projects/tagcloud' %> 14 <%= render :partial => 'projects/tagcloud' %>
10 </div> 15 </div>