]> source.dussan.org Git - redmine.git/commitdiff
textile for revisions comments
authorJean-Philippe Lang <jp_lang@yahoo.fr>
Tue, 26 Dec 2006 21:15:28 +0000 (21:15 +0000)
committerJean-Philippe Lang <jp_lang@yahoo.fr>
Tue, 26 Dec 2006 21:15:28 +0000 (21:15 +0000)
git-svn-id: http://redmine.rubyforge.org/svn/trunk@125 e93f8b46-1217-0410-a6f0-8f06a7374b81

app/helpers/application_helper.rb
app/views/repositories/revision.rhtml
app/views/repositories/revisions.rhtml

index 29494d707a8f4a2dd2c52f541de00e7dffdb9ff2..397b747d56104bde33c648a2b351e6f962949de8 100644 (file)
@@ -85,7 +85,7 @@ module ApplicationHelper
   end\r
   \r
   def textilizable(text)\r
-    $RDM_TEXTILE_DISABLED ? text : RedCloth.new(text).to_html\r
+    $RDM_TEXTILE_DISABLED ? simple_format(auto_link(h(text))) : RedCloth.new(h(text)).to_html\r
   end\r
   \r
   def error_messages_for(object_name, options = {})\r
index 6a5a20d973a6f663122fb6deffa2c02d15151ccd..19e980825bd9250239350f01f5eeb7a762d0694d 100644 (file)
@@ -9,7 +9,7 @@
 <h2><%= l(:label_revision) %> <%= @revision.identifier %></h2>\r
 \r
 <p><em><%= @revision.author %>, <%= format_time(@revision.time) %></em></p>\r
-<%= simple_format @revision.message %>\r
+<%= textilizable @revision.message %>\r
 \r
 <div style="float:right;">\r
 <div class="square action_A"></div> <div style="float:left;"><%= l(:label_added) %>&nbsp;</div>\r
index c2e30d30c35bdec7223c745db6017930f1edfa0f..851c8585856ea2b102a0f84ce3b83f502007d64f 100644 (file)
@@ -29,7 +29,7 @@
 <th align="center"><%= link_to revision.identifier, :action => 'revision', :id => @project, :rev => revision.identifier %></th>\r
 <td align="center"><em><%=h revision.author %></em></td>\r
 <td align="center"><%= format_time(revision.time) %></td>\r
-<td width="70%"><%= simple_format(h(revision.message)) %></td>\r
+<td width="70%"><%= textilizable(revision.message) %></td>\r
 <td align="center"><%= link_to 'Diff', :action => 'diff', :id => @project, :path => @path, :rev => revision.identifier if @entry.is_file? && revision != @revisions.last %></td>\r
 </tr>\r
 <% end %>\r