home
This commit is contained in:
parent
6276fa354b
commit
33f77a750f
1 changed files with 5 additions and 3 deletions
|
|
@ -22,6 +22,7 @@
|
||||||
<% # render @subjects %>
|
<% # render @subjects %>
|
||||||
<li>
|
<li>
|
||||||
<% @subjects.each do |subject| %>
|
<% @subjects.each do |subject| %>
|
||||||
|
<% subject.associated_public_figures.each do |public_figure| %>
|
||||||
|
|
||||||
<tr>
|
<tr>
|
||||||
|
|
||||||
|
|
@ -32,8 +33,9 @@
|
||||||
</td>
|
</td>
|
||||||
|
|
||||||
<td style="width:50%">
|
<td style="width:50%">
|
||||||
<% subject.associated_public_figures.each do |public_figure| %>
|
<% if statement.public_figure.picture? %>
|
||||||
<div style="height:30px; width: 30px; -webkit-border-radius: 50%; border-radius: 50%; background: url('<%= public_figure.picture.url %>') 50% 50% no-repeat; background-size:cover; background-position: center center; float:right; margin-right:15px;"></div>
|
<div style="height:30px; width: 30px; -webkit-border-radius: 50%; border-radius: 50%; background: url('<%= public_figure.picture.url %>') 50% 50% no-repeat; background-size:cover; background-position: center center; float:right; margin-right:15px;"></div>
|
||||||
|
<% end %>
|
||||||
</td>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
</li>
|
</li>
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue