changeset 1302:f9a81a1a4425 cannam

Add "all projects" link to explore page
author Chris Cannam
date Fri, 14 Jun 2013 11:11:32 +0100
parents 598af7ed80ca
children 537026b96b8b 6137548ba453
files app/views/projects/explore.html.erb
diffstat 1 files changed, 2 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/app/views/projects/explore.html.erb	Fri Jun 14 10:26:07 2013 +0100
+++ b/app/views/projects/explore.html.erb	Fri Jun 14 11:11:32 2013 +0100
@@ -3,7 +3,8 @@
 <% 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) %>
+    <%= link_to l(:label_project_all), { :controller => 'projects', :action => 'index' }%>
+    <%= '| ' + 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>
 
 <h2><%= l(:label_explore_projects) %></h2>