From 0820e745d65b7a2f197df1a6128fe7cc196fc940 Mon Sep 17 00:00:00 2001 From: Jean-Philippe Lang Date: Tue, 26 Dec 2006 21:15:28 +0000 Subject: [PATCH] textile for revisions comments git-svn-id: http://redmine.rubyforge.org/svn/trunk@125 e93f8b46-1217-0410-a6f0-8f06a7374b81 --- app/helpers/application_helper.rb | 2 +- app/views/repositories/revision.rhtml | 2 +- app/views/repositories/revisions.rhtml | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/app/helpers/application_helper.rb b/app/helpers/application_helper.rb index 29494d707..397b747d5 100644 --- a/app/helpers/application_helper.rb +++ b/app/helpers/application_helper.rb @@ -85,7 +85,7 @@ module ApplicationHelper end def textilizable(text) - $RDM_TEXTILE_DISABLED ? text : RedCloth.new(text).to_html + $RDM_TEXTILE_DISABLED ? simple_format(auto_link(h(text))) : RedCloth.new(h(text)).to_html end def error_messages_for(object_name, options = {}) diff --git a/app/views/repositories/revision.rhtml b/app/views/repositories/revision.rhtml index 6a5a20d97..19e980825 100644 --- a/app/views/repositories/revision.rhtml +++ b/app/views/repositories/revision.rhtml @@ -9,7 +9,7 @@

<%= l(:label_revision) %> <%= @revision.identifier %>

<%= @revision.author %>, <%= format_time(@revision.time) %>

-<%= simple_format @revision.message %> +<%= textilizable @revision.message %>
<%= l(:label_added) %> 
diff --git a/app/views/repositories/revisions.rhtml b/app/views/repositories/revisions.rhtml index c2e30d30c..851c85858 100644 --- a/app/views/repositories/revisions.rhtml +++ b/app/views/repositories/revisions.rhtml @@ -29,7 +29,7 @@ <%= link_to revision.identifier, :action => 'revision', :id => @project, :rev => revision.identifier %> <%=h revision.author %> <%= format_time(revision.time) %> -<%= simple_format(h(revision.message)) %> +<%= textilizable(revision.message) %> <%= link_to 'Diff', :action => 'diff', :id => @project, :path => @path, :rev => revision.identifier if @entry.is_file? && revision != @revisions.last %> <% end %>