Skip to content

Commit

Permalink
don't list draft bulletins
Browse files Browse the repository at this point in the history
  • Loading branch information
ryanttb committed Oct 18, 2017
1 parent fe9030a commit 3ce25a0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/views/layouts/bulletin.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@
<h2>Research Bulletins</h2>

<ul>
<% @page.parent.children.each { |p| %>
<% @page.parent.children.where( draft: false ).each { |p| %>
<li><%= link_to p.title, p %> <time><%= p.created_at.to_s :publication %></time></li>
<% } %>
</ul>
Expand Down

0 comments on commit 3ce25a0

Please sign in to comment.