forked from bofh/fetsite
crawler
This commit is contained in:
9
app/views/crawler/index.html.erb
Normal file
9
app/views/crawler/index.html.erb
Normal file
@@ -0,0 +1,9 @@
|
||||
<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>
|
||||
1
app/views/crawler/load_attachments.js.erb
Normal file
1
app/views/crawler/load_attachments.js.erb
Normal file
@@ -0,0 +1 @@
|
||||
alert("attachments loaded")neuigkeit.updated_at.try(:utc).try(:to_s)
|
||||
@@ -1,4 +1,9 @@
|
||||
<li><%= link_to crawlobject.url do %> <b> <%= crawlobject.name %> (<%= crawlobject.published_at %>)</b> <%= crawlobject.text %>
|
||||
<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 %>
|
||||
@@ -8,4 +13,5 @@
|
||||
<% end %>
|
||||
</ul>
|
||||
<% end %>
|
||||
|
||||
</li>
|
||||
|
||||
@@ -49,7 +49,9 @@ end
|
||||
</div>
|
||||
<% unless @neuigkeit.published? %>
|
||||
<div class="sticker sticker-red"> Not Published</div> <% end %>
|
||||
|
||||
<% unless @neuigkeit.origurl.nil? || @neuigkeit.origurl.empty? %>
|
||||
<div class="alert"><%= link_to "Zitiert von "+ @neuigkeit.origurl, @neuigkeit.origurl %></div>
|
||||
<% end %>
|
||||
<div class="media">
|
||||
<% unless @neuigkeit.picture_robust.big_thumb.to_s.empty? %>
|
||||
<div class="pull-left" href="#">
|
||||
|
||||
Reference in New Issue
Block a user