changeset 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 3c9ca27c2d3d
children 6676c0284df2
files app/views/projects/explore.html.erb
diffstat 1 files changed, 5 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/app/views/projects/explore.html.erb	Tue Jan 22 16:51:56 2013 +0000
+++ b/app/views/projects/explore.html.erb	Tue Jan 22 16:54:14 2013 +0000
@@ -2,7 +2,12 @@
     <%= stylesheet_link_tag 'redmine_tags', :plugin => 'redmine_tags' %>
 <% end %>
 
+<div class="contextual">
+    <%= link_to(l(:label_project_new), {:controller => 'projects', :action => 'new'}, :class => 'icon icon-add') if User.current.allowed_to?(:add_project, nil, :global => true) %>
+</div>
+
 <% cache(:action => 'explore', :action_suffix => 'tags', :expires_in => 1.hour) do %>
+
 <h2><%= l(:label_explore_projects) %></h2>
   <div class="tags box">
   <h3><%=l(:label_project_tags_all)%></h3>