Date: 2008-01-29 10:31
Sender: Michael Pirogov
Patch for full textilization:
Index: documents/_document.rhtml
=================================================================
==
--- documents/_document.rhtml (revision 1104)
+++ documents/_document.rhtml (working copy)
@@ -1,3 +1,5 @@
<p><%= link_to h(document.title), :controller =>
'documents', :action => 'show', :id => document %><br
/>
<% unless document.description.blank?
%><%=h(truncate(document.description, 250)) %><br
/><% end %>
+<br/>
+<% unless document.description.blank? %><%=
textilize(sanitize(truncate(document.description, 250)))) %><br
/><% end %>
<em><%= format_time(document.created_on)
%></em></p>
Index: projects/activity.rhtml
=================================================================
==
--- projects/activity.rhtml (revision 1104)
+++ projects/activity.rhtml (working copy)
@@ -5,7 +5,7 @@
<ul>
<% @events_by_day[day].sort {|x,y| y.event_datetime <=>
x.event_datetime }.each do |e| %>
<li><p><%= format_time(e.event_datetime,
false) %> <%= link_to truncate(e.event_title, 100), e.event_url
%><br />
- <% unless e.event_description.blank? %><em><%=
truncate(e.event_description, 500) %></em><br /><%
end %>
+ <% unless e.event_description.blank? %><em><%=
textilize(sanitize(truncate(e.event_description, 500)))
%></em><br /><% end %>
<span class="author"><%= e.event_author
if e.respond_to?(:event_author)
%></span></p></li>
<% end %>
</ul> |