Browse files

Use a consistent news layout.

The all news page layout should be consistent between the top-level news index and organisation news indexes.
  • Loading branch information...
1 parent d3e1f8c commit a632fbea0cd658618c0c1ebe841a1556d6a7fbfa @lazyatom lazyatom committed Feb 2, 2012
Showing with 6 additions and 6 deletions.
  1. +6 −6 app/views/organisations/news.html.erb
View
12 app/views/organisations/news.html.erb
@@ -3,12 +3,12 @@
<%= render 'header', organisation: @organisation, title: "#{@organisation.name} News" %>
<div class="g3 page_detail">
- <% if @news_articles.any? %>
- <% @news_articles.each do |news_article| %>
- <%= render partial: "announcements/news_article", locals: { news_article: news_article, display: "default" } %>
+ <section id="news_articles" class="announcements group">
+ <% if @news_articles.any? %>
+ <%= announcement_group(@news_articles, groups_of: 3, class: "", partial: "default") %>
+ <% else %>
+ <p>There are no <%= @organisation.name %> news articles at present.</p>
<% end %>
- <% else %>
- <p>There are no <%= @organisation.name %> news articles at present.</p>
- <% end %>
+ </section>
</div>
</div>

0 comments on commit a632fbe

Please sign in to comment.