<% detail ||=false %>
<article class="news-article journal message <%= 'unread' if news.unread?(User.current) -%>">
  <h3><%= link_to news.title, news_path(news) %></h3>
  <%= avatar(news.author, :style => :small) -%>
  <div class="message-body journal-details-container ">
    <header>
      <h5 class="message-authoring journal-byline">
        <span><%= link_to_user(news.author) -%></span>
        <%= content_tag(:span, format_time(news.created_on)) %>
        <span class="icon-watcher <%= news.unread?(User.current) ? 'red-icon' : 'green-icon' -%>" title="<%= l(:label_unread_entity) if news.unread?(User.current) %>"></span>
      </h5>
    </header>
    <div class="description wiki">
      <% if detail %>
        <%= textilizable(news.description, {:headings => false, :attachments => news.attachments}) %>
      <% else %>
        <% o = '...' << link_to(l(:label_more), news_path(news)) %>
        <%= truncate_html(textilizable(news.description, {:headings => false, :attachments => news.attachments}), 120, o)%>
      <% end -%>
    </div>
    <div class="details">
      <%= project_header_breadcrump(news, {:link_tail => true}) %>
    </div>
  </div>
</article>
