Feature #202 » news-summ.patch
| app/views/news/_news.rhtml (working copy) | ||
|---|---|---|
|
<%= link_to h(news.title), :controller => 'news', :action => 'show', :id => news %>
|
||
|
<%= "(#{news.comments_count} #{lwr(:label_comment, news.comments_count).downcase})" if news.comments_count > 0 %>
|
||
|
<br />
|
||
|
<% unless news.summary.blank? %><span class="summary"><%=h news.summary %></span><br /><% end %>
|
||
|
<% unless news.summary.blank? %><span class="summary"><%= textilizable(news.summary) %></span><br /><% end %>
|
||
|
<span class="author"><%= authoring news.created_on, news.author %></span></p>
|
||
| app/views/news/show.rhtml (working copy) | ||
|---|---|---|
|
<% end %>
|
||
|
</div>
|
||
|
<p><em><% unless @news.summary.empty? %><%=h @news.summary %><br /><% end %>
|
||
|
<p><em><% unless @news.summary.empty? %><%= textilizable(@news.summary) %><br /><% end %>
|
||
|
<span class="author"><%= authoring @news.created_on, @news.author %></span></em></p>
|
||
|
<%= textilizable(@news.description) %>
|
||
|
<br />
|
||
| app/views/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 %>
|
||
|
<em><%= format_time(document.created_on) %></em></p>
|
||
|
<% unless document.description.blank? %><%= textilizable(truncate(document.description, 250), :project => document.project) %><br /><% end %>
|
||
|
<em><%= format_time(document.created_on) %></em></p>
|
||