Commit 0820e745 authored by Jean-Philippe Lang's avatar Jean-Philippe Lang

textile for revisions comments

git-svn-id: http://redmine.rubyforge.org/svn/trunk@125 e93f8b46-1217-0410-a6f0-8f06a7374b81
parent 2197fa31
......@@ -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 = {})
......
......@@ -9,7 +9,7 @@
<h2><%= l(:label_revision) %> <%= @revision.identifier %></h2>
<p><em><%= @revision.author %>, <%= format_time(@revision.time) %></em></p>
<%= simple_format @revision.message %>
<%= textilizable @revision.message %>
<div style="float:right;">
<div class="square action_A"></div> <div style="float:left;"><%= l(:label_added) %>&nbsp;</div>
......
......@@ -29,7 +29,7 @@
<th align="center"><%= link_to revision.identifier, :action => 'revision', :id => @project, :rev => revision.identifier %></th>
<td align="center"><em><%=h revision.author %></em></td>
<td align="center"><%= format_time(revision.time) %></td>
<td width="70%"><%= simple_format(h(revision.message)) %></td>
<td width="70%"><%= textilizable(revision.message) %></td>
<td align="center"><%= link_to 'Diff', :action => 'diff', :id => @project, :path => @path, :rev => revision.identifier if @entry.is_file? && revision != @revisions.last %></td>
</tr>
<% end %>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment