72 lines
2.2 KiB
Plaintext
72 lines
2.2 KiB
Plaintext
<%= render(:partial => "nav") %>
|
|
|
|
<h1>Favorite People</h1>
|
|
|
|
<!--<ul class="people-list">-->
|
|
<%# @favorite_people.each do |person| %>
|
|
<!-- <li class="person">-->
|
|
<%#= link_to crawlers_people_crawler_show_detail_url(:tiss_id => person['tiss_id']) do %>
|
|
<!-- <span class="list-link">-->
|
|
<!-- <span class="person-icon">-->
|
|
<%# if person['picture_uri'] != nil %>
|
|
<%#= image_tag @host + person['picture_uri'] %>
|
|
<%# else %>
|
|
<%#= show_svg('account_circle-black-48dp.svg') %>
|
|
<%# end %>
|
|
<!-- </span>-->
|
|
<!-- <span class="person-name">-->
|
|
<%#= person['first_name'] %>
|
|
<%#= person['last_name'] %>
|
|
<!-- </span>-->
|
|
<!-- </span>-->
|
|
<%# end %>
|
|
<!-- </li>-->
|
|
<%# end %>
|
|
<!--</ul>-->
|
|
|
|
<% if !@favorite_people[0].blank? %>
|
|
<div class="table_wrapper">
|
|
<table>
|
|
<tr>
|
|
<th></th>
|
|
<th><%= sortable "First Name", "first_name" %></th>
|
|
<th><%= sortable "Last Name", "last_name" %></th>
|
|
<th><%= sortable "Registration Date", "created_at" %></th>
|
|
<th></th>
|
|
<th></th>
|
|
</tr>
|
|
<% for person in @favorite_people %>
|
|
<tr>
|
|
<td>
|
|
<%= link_to crawlers_people_crawler_show_detail_url(:tiss_id => person['tiss_id']) do %>
|
|
<span>
|
|
<% if person['picture_uri'] != nil %>
|
|
<%= image_tag @host + person['picture_uri'], class: 'thumb'%>
|
|
<% else %>
|
|
<%= show_svg('account_circle-black-48dp.svg')%>
|
|
<% end %>
|
|
</span>
|
|
<% end %>
|
|
</td>
|
|
<td>
|
|
<%= person['first_name'] %>
|
|
</td>
|
|
<td>
|
|
<%= person['last_name'] %>
|
|
</td>
|
|
<td>
|
|
<%= person['created_at'] %>
|
|
</td>
|
|
<td>
|
|
<%= button_to 'Details', crawlers_people_crawler_show_detail_url(:tiss_id => person['tiss_id']) %>
|
|
</td>
|
|
<td>
|
|
<%= button_to "Delete", {:action => "delete_person", :tiss_id => person['tiss_id']}, :method => 'delete' %>
|
|
</td>
|
|
</tr>
|
|
<% end %>
|
|
</table>
|
|
</div>
|
|
<% else %>
|
|
No favorite people added yet!
|
|
<% end %> |