crawler type 6

This commit is contained in:
Andreas Stephanides
2015-06-15 15:39:03 +02:00
parent 01521104ce
commit e3624263f5
3 changed files with 46 additions and 12 deletions

View File

@@ -1,9 +1,39 @@
<h2>HTU News</h2>
<table>
<% @crawlobjs.each do |co| %>
<tr> <td> <%= render co %> </td>
<td>
<%= link_to "move_to_news",move_to_news_crawler_path(co) %>
<%= render co.something unless co.something.nil? %>
</td> </tr><% end %>
</table>
<div id="tabs">
<ul>
<li><a href="#tab-htu">HTU-News</a></li>
<li><a href="#tab-etit">ETIT-News</a></li>
</ul>
<div id="tab-htu">
<table>
<% @crawlobjs.each do |co| %>
<tr>
<td> <%= render co %> </td>
<td>
<%= link_to "move_to_news",move_to_news_crawler_path(co) %>
<%= render co.something unless co.something.nil? %>
</td>
</tr>
<% end %>
</table>
</div>
<div id="tab-etit">
<table>
<% @crawlobjs_etit.each do |co| %>
<tr>
<td> <%= render co %> </td>
<td>
<%= link_to "move_to_news",move_to_news_crawler_path(co) %>
<%= render co.something unless co.something.nil? %>
</td>
</tr>
<% end %>
</table>
</div>
</div>
<script>$("#tabs").tabs()</script>