Project

General

Profile

Feature #202 » news-summ.patch

Warren Harris, 2008-02-03 10:56

View differences:

app/views/news/_news.rhtml (working copy)
2 2
<%= link_to h(news.title), :controller => 'news', :action => 'show', :id => news %>
3 3
<%= "(#{news.comments_count} #{lwr(:label_comment, news.comments_count).downcase})" if news.comments_count > 0 %>
4 4
<br />
5
<% unless news.summary.blank? %><span class="summary"><%=h news.summary %></span><br /><% end %>
5
<% unless news.summary.blank? %><span class="summary"><%= textilizable(news.summary) %></span><br /><% end %>
6 6
<span class="author"><%= authoring news.created_on, news.author %></span></p>
app/views/news/show.rhtml (working copy)
17 17
<% end %>
18 18
</div>
19
<p><em><% unless @news.summary.empty? %><%=h @news.summary %><br /><% end %>
19
<p><em><% unless @news.summary.empty? %><%= textilizable(@news.summary) %><br /><% end %>
20 20
<span class="author"><%= authoring @news.created_on, @news.author %></span></em></p>
21 21
<%= textilizable(@news.description) %>
22 22
<br />
app/views/documents/_document.rhtml (working copy)
1 1
<p><%= link_to h(document.title), :controller => 'documents', :action => 'show', :id => document %><br />
2
<% unless document.description.blank? %><%=h(truncate(document.description, 250)) %><br /><% end %>
3
<em><%= format_time(document.created_on) %></em></p>
2
<% unless document.description.blank? %><%= textilizable(truncate(document.description, 250), :project => document.project) %><br /><% end %>
3
<em><%= format_time(document.created_on) %></em></p>
(1-1/10)