OSDN Git Service

Fixed: Wrong link when "http" not included in project "Homepage" link (#4944).
authorJean-Philippe Lang <jp_lang@yahoo.fr>
Sun, 28 Feb 2010 09:10:33 +0000 (09:10 +0000)
committerJean-Philippe Lang <jp_lang@yahoo.fr>
Sun, 28 Feb 2010 09:10:33 +0000 (09:10 +0000)
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@3498 e93f8b46-1217-0410-a6f0-8f06a7374b81

app/views/projects/show.rhtml

index 7d5412a..c47a443 100644 (file)
@@ -9,7 +9,7 @@
 <div class="splitcontentleft">
        <%= textilizable @project.description %>        
        <ul>
-       <% unless @project.homepage.blank? %><li><%=l(:field_homepage)%>: <%= link_to(h(@project.homepage), @project.homepage) %></li><% end %>
+       <% unless @project.homepage.blank? %><li><%=l(:field_homepage)%>: <%= auto_link(h(@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>