new statement partial for public figures

This commit is contained in:
Jalil Arfaoui 2015-11-29 15:51:49 +01:00
parent 64fa1bfc67
commit deeb61d940
2 changed files with 7 additions and 1 deletions

View file

@ -0,0 +1,6 @@
<li>
Au sujet de
<%= link_to statement.position.subject.title, statement.position.subject %>
en faveur de
<%= link_to statement.position.title, statement.position %>
</li>

View file

@ -27,7 +27,7 @@
<% if @public_figure.statements.any? %> <% if @public_figure.statements.any? %>
<ul class="Statements"> <ul class="Statements">
<%= render @public_figure.statements.select { |s| s.id } %> <%= render partial: "statement", collection:@public_figure.statements.select { |s| s.id }, as: :statement %>
<% if logged_in? && allowed_to(:add_statement) %> <% if logged_in? && allowed_to(:add_statement) %>
<li id="new-statement"> <li id="new-statement">