To check out this repository please hg clone the following URL, or open the URL using EasyMercurial or your preferred Mercurial client.
root / app / views / news / _news.html.erb @ 1298:4f746d8966dd
History | View | Annotate | Download (523 Bytes)
| 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> |
| 11 |
<% unless news.summary.blank? %><span class="summary"><%=h news.summary %></span><br /><% end %> |
| 12 |
</dd>
|
| 13 |
</div>
|