ensl.org/app/views/widgets/_articles.html.erb

18 lines
410 B
Text
Raw Permalink Normal View History

<div class="header">Latest articles</div>
<div class="body">
<div class="content">
<h3>
Latest articles
</h3>
<ul>
<% Article.articles.nodrafts.nospecial.recent.each do |article| %>
<li class="<%= 'bold' if cuser and !article.read_by? cuser %>">
<%= namelink article %>
</li>
<% end %>
</ul>
</div>
</div>
<%= link_to "More..", articles_path %>