changeset 1143:908e97507ef8 redmine-2.2-integration

Fix rendering of project homepages with custom welcome pages
author Chris Cannam <chris.cannam@soundsoftware.ac.uk>
date Thu, 10 Jan 2013 15:30:13 +0000
parents 7c3de6c7b7f5
children 0abc483356d8
files app/views/projects/show.html.erb
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/app/views/projects/show.html.erb	Thu Jan 10 15:25:28 2013 +0000
+++ b/app/views/projects/show.html.erb	Thu Jan 10 15:30:13 2013 +0000
@@ -27,10 +27,10 @@
 
 <div class="contextual" style="clear: right">
 <ul>
-<% unless @project.homepage.blank? %><li><%=l(:field_homepage)%>: <%= auto_link(h(@project.homepage)) %></li><% end %>
+<% unless @project.homepage.blank? %><li><%=l(:field_homepage)%>: <%= link_to h(@project.homepage), @project.homepage %></li><% end %>
 <% if @subprojects.any? %>
 	<li><%=l(:label_subproject_plural)%>:
-	    <%= @subprojects.collect{|p| link_to(h(p), :action => 'show', :id => p)}.join(", ") %></li>
+	    <%= @subprojects.collect{|p| link_to(h(p), :action => 'show', :id => p)}.join(", ").html_safe %></li>
 <% end %>
 </ul>
 </div>