]> source.dussan.org Git - redmine.git/commitdiff
Rails3: view: html_safe for auto_link of project homepage
authorToshi MARUYAMA <marutosijp2@yahoo.co.jp>
Thu, 23 Feb 2012 23:08:00 +0000 (23:08 +0000)
committerToshi MARUYAMA <marutosijp2@yahoo.co.jp>
Thu, 23 Feb 2012 23:08:00 +0000 (23:08 +0000)
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@8956 e93f8b46-1217-0410-a6f0-8f06a7374b81

app/views/projects/show.html.erb

index 8ba36ba045b425ec446f67a47e1d98e98289d934..5371bc4c884467bd601040a2b8de6ecbb1f0a6fc 100644 (file)
     <%= textilizable @project.description %>
   </div>
   <ul>
-  <% unless @project.homepage.blank? %><li><%=l(:field_homepage)%>: <%= auto_link(h(@project.homepage)) %></li><% end %>
+  <% unless @project.homepage.blank? %>
+    <li><%=l(:field_homepage)%>: <%= auto_link(h(@project.homepage)).html_safe %></li>
+  <% end %>
   <% if @subprojects.any? %>
-   <li><%=l(:label_subproject_plural)%>:
+    <li><%=l(:label_subproject_plural)%>:
       <%= @subprojects.collect{|p| link_to(h(p), :action => 'show', :id => p)}.join(", ").html_safe %></li>
   <% end %>
   <% @project.visible_custom_field_values.each do |custom_value| %>