OpenProject is the leading open source project management software.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
openproject/app/views/homescreen/blocks/_news.html.erb

21 lines
641 B

<h3 class="widget-box--header">
<%= op_icon('icon-context icon-news') %>
<span class="widget-box--header-title"><%= l(:label_news_latest) %></span>
</h3>
<% unless @news.empty? %>
<ul class="widget-box--arrow-links">
<% @news.each do |news| %>
<li class="-widget-box--arrow-multiline">
<div>
<%= avatar(news.author, {class: 'avatar-mini'}) %>
<%= link_to_project(news.project) + ': ' %>
<%= link_to h(news.title), news_path(news) %>
<br/>
<span class="additional-information"><%= authoring news.created_on, news.author %></span>
</div>
</li>
<% end %>
</ul>
<% end %>