new statement partial for public figures
This commit is contained in:
parent
64fa1bfc67
commit
deeb61d940
2 changed files with 7 additions and 1 deletions
6
app/views/public_figures/_statement.html.erb
Normal file
6
app/views/public_figures/_statement.html.erb
Normal 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>
|
||||
|
|
@ -27,7 +27,7 @@
|
|||
<% if @public_figure.statements.any? %>
|
||||
<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) %>
|
||||
<li id="new-statement">
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue