textile for revisions comments
git-svn-id: http://redmine.rubyforge.org/svn/trunk@125 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
parent
2197fa3120
commit
0820e745d6
|
@ -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) %> </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 %>
|
||||
|
|
Loading…
Reference in New Issue