<% if !list.nil? and list.size > 0 %>
<table>
  <thead>
    <tr>
      <th>Sujeto</th>
      <th>Verbo</th>
      <th>Predicado</th>
    </tr>
  </thead>

  <tbody>
    <% list.each do |relation| %>
      <tr>
        <td><%= 
          link_to relation.source.name, relation.source.person ? person_path(relation.source) : organization_path(relation.source) 
        %></td>
        <td><%= relation.relation_type.description %></td>
        <td><%= 
          link_to relation.target.name, relation.target.person ? person_path(relation.target) : organization_path(relation.target) 
        %></td>
      </tr>
    <% end %>
  </tbody>
</table>
<% end %>
<% if !list.nil? and list.size > 0 %>
<table>
  <thead>
    <tr>
      <th>Sujeto</th>
      <th>Verbo</th>
      <th>Predicado</th>
      <th>Desde</th>
      <th>Hasta</th>
      <th>En</th>
    </tr>
  </thead>

  <tbody>
    <% list.each do |relation| %>
      <tr>
        <td><%= 
          link_to relation.source.name, relation.source.person ? person_path(relation.source) : organization_path(relation.source) 
        %></td>
        <td><%= relation.relation_type.description %></td>
        <td><%= 
          link_to relation.target.name, relation.target.person ? person_path(relation.target) : organization_path(relation.target) 
        %></td>
        <td><%= relation.from %></td>
        <td><%= relation.to %></td>
        <td><%= relation.at %></td>
      </tr>
    <% end %>
  </tbody>
</table>
<% end %>
Add more details to relations list
Add more details to relations list
