Patch #258 » truncate_activity_document.patch
| documents/_document.rhtml (working copy) | ||
|---|---|---|
|
<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? %><%=(simple_format(sanitize(truncate(document.description, 250)))) %><br /><% end %>
|
||
|
<em><%= format_time(document.created_on) %></em></p>
|
||
| projects/activity.rhtml (working copy) | ||
|---|---|---|
|
<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><%= (simple_format(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>
|
||
- « Previous
- 1
- 2
- 3
- Next »