app/views/partidos/vinculos_intereses.html.erb
<ol class="breadcrumb"><li><%= @partido.nombre %></li><li>Vínculos e intereses</li><li>Entidades en las que tenga participación</li></ol>
<h3>Entidades en que tenga participación</h3>
<div class="table-responsive">
<table class="table">
<thead>
<tr>
<th>Entidad</th>
<th>Descripción</th>
<th>Documento</th>
</tr>
</thead>
<tbody>
<% @entidades.each do |e| %>
<tr>
<td><%= e.entidad %></td>
<td><%= e.descripcion %></td>
<td>
<% if !e.documento_file_name.nil? %>
<%= link_to e.documento.url do %>
<i class="fa fa-download"></i> Descargar
<% end %>
<% end %>
</td>
</tr>
<% end %>
<% if !@entidades.any? %>
<tr>
<td colspan="3">
<p><i class="fa fa-exclamation-circle" aria-hidden="true"></i> No se han encontrado registros</p>
</td>
</tr>
<% end %>
</tbody>
</table>
</div>