annotate app/views/news/_news.rhtml @ 361:30f68ecfdde4 bug_127

Formatting for Latest News box -- make it much more like the Recent Activity layout. Also adjust the date formatting in Latest Projects likewise.
author Chris Cannam <chris.cannam@soundsoftware.ac.uk>
date Fri, 01 Apr 2011 11:41:25 +0100
parents 94944d00e43c
children dcfde3922ec2
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@361 4 <% if !@project %>
chris@361 5 <span class="project"><%= link_to_project(news.project) %></span>
chris@361 6 <% end %>
chris@361 7 <span class="headline"><%= link_to h(news.title), news_path(news) %></span>
chris@361 8 <span class="comments"><%= "(#{l(:label_x_comments, :count => news.comments_count)})" if news.comments_count > 0 %></span>
chris@361 9 </dt><dd>
Chris@0 10 <% unless news.summary.blank? %><span class="summary"><%=h news.summary %></span><br /><% end %>
chris@361 11 </dd>
chris@361 12 </div>