ensl.org/app/views/articles/news_index.html.erb
Luke Barratt 5a89d4c92c Improve news page layout
Fix forums unread icon
Fix double linebreaks in BBcode
Increase colour darkness
2014-04-29 21:02:20 +01:00

13 lines
408 B
Text

<div id="news">
<% @news.each_with_index do |item, i| %>
<%= render partial: 'preview', locals: { article: item, expanded: (true if i == 0) } %>
<% end %>
</div>
<div class="actions-bottom">
<%= link_to t('news.archive'), '/news/archive', class: 'button' %>
<% if cuser and cuser.admin? %>
<%= link_to t('helpers.submit.post.new'), new_article_path, class: "button" %>
<% end %>
</div>