diff app/views/projects/index.html.erb @ 1139:5e476516ffea redmine-2.2-integration

Ensure generated HTML is marked as safe & thus rendered
author Chris Cannam <chris.cannam@soundsoftware.ac.uk>
date Thu, 10 Jan 2013 15:11:59 +0000
parents bb32da3bea34
children 16826c3afbba
line wrap: on
line diff
--- a/app/views/projects/index.html.erb	Thu Jan 10 15:11:44 2013 +0000
+++ b/app/views/projects/index.html.erb	Thu Jan 10 15:11:59 2013 +0000
@@ -4,13 +4,13 @@
 
 <div class="contextual">
     <%= link_to l(:label_overall_activity), { :controller => 'activities', :action => 'index' }%>
-    <%= '| ' + link_to(l(:label_issue_view_all), issues_path) if User.current.allowed_to?(:view_issues, nil, :global => true) %>
-    <%= '| ' + 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_issue_view_all), issues_path)).html_safe if User.current.allowed_to?(:view_issues, nil, :global => true) %>
+    <%= ('| ' + link_to(l(:label_project_new), {:controller => 'projects', :action => 'new'}, :class => 'icon icon-add')).html_safe if User.current.allowed_to?(:add_project, nil, :global => true) %>
 </div>
 
 <% if @user_projects %>
   
-  <%= render_my_project_hierarchy(@user_projects)%>
+  <%= render_my_project_hierarchy(@user_projects) %>
 
 <% end %>