Revision 443:350acce374a2 app/views/news
| app/views/news/_news.rhtml | ||
|---|---|---|
| 1 |
<p><%= link_to_project(news.project) + ': ' unless @project %> |
|
| 2 |
<%= link_to h(news.title), news_path(news) %> |
|
| 3 |
<%= "(#{l(:label_x_comments, :count => news.comments_count)})" if news.comments_count > 0 %>
|
|
| 4 |
<br /> |
|
| 1 |
<div id="news"> |
|
| 2 |
<dt> |
|
| 3 |
<span class="time"><%= format_time(news.created_on) %></span> |
|
| 4 |
<% project ||= @project %> |
|
| 5 |
<% if !project %> |
|
| 6 |
<span class="project"><%= link_to_project(news.project) %></span> |
|
| 7 |
<% end %> |
|
| 8 |
<span class="headline"><%= link_to h(news.title), news_path(news) %></span> |
|
| 9 |
<span class="comments"><%= "(#{l(:label_x_comments, :count => news.comments_count)})" if news.comments_count > 0 %></span>
|
|
| 10 |
</dt><dd> |
|
| 5 | 11 |
<% unless news.summary.blank? %><span class="summary"><%=h news.summary %></span><br /><% end %> |
| 6 |
<span class="author"><%= authoring news.created_on, news.author %></span></p> |
|
| 12 |
</dd> |
|
| 13 |
</div> |
|
Also available in: Unified diff