annotate app/views/news/_news.rhtml @ 374:dcfde3922ec2
feature_126
Turn general News box on site front page into a Site News box (#126)
author |
Chris Cannam <chris.cannam@soundsoftware.ac.uk> |
date |
Fri, 01 Apr 2011 16:11:30 +0100 |
parents |
30f68ecfdde4 |
children |
|
rev |
line source |
chris@361
|
1 <div id="news">
|
chris@361
|
2 <dt>
|
chris@361
|
3 <span class="time"><%= format_time(news.created_on) %></span>
|
chris@374
|
4 <% project ||= @project %>
|
chris@374
|
5 <% if !project %>
|
chris@361
|
6 <span class="project"><%= link_to_project(news.project) %></span>
|
chris@361
|
7 <% end %>
|
chris@361
|
8 <span class="headline"><%= link_to h(news.title), news_path(news) %></span>
|
chris@361
|
9 <span class="comments"><%= "(#{l(:label_x_comments, :count => news.comments_count)})" if news.comments_count > 0 %></span>
|
chris@361
|
10 </dt><dd>
|
Chris@0
|
11 <% unless news.summary.blank? %><span class="summary"><%=h news.summary %></span><br /><% end %>
|
chris@361
|
12 </dd>
|
chris@361
|
13 </div>
|