Files
fetsite/app/views/crawlobjects/_crawlobject.html.erb
Andreas Stephanides 036f90e6e5 crawler
2015-04-22 18:43:24 +02:00

18 lines
502 B
Plaintext

<li><%= link_to crawlobject.url do %>
<b> <%= crawlobject.name %> (<%= crawlobject.published_at %>)</b><% end %>
<%= (crawlobject.text.html_safe) unless crawlobject.text.nil?%>
<% if crawlobject.has_attachments? %>
<%= render_attachments_for(crawlobject) %>
<%= link_to "load attachments", load_attachments_crawler_path(crawlobject), remote: true %>
<% end %>
<% if crawlobject.children.count >0 %>
<ul>
<% crawlobject.children.each do |cc| %>
<%= render cc %>
<% end %>
</ul>
<% end %>
</li>