forked from bofh/fetsite
AutoCommit Mon Jun 15 17:03:08 CEST 2015
This commit is contained in:
@@ -128,3 +128,29 @@ body {
|
||||
background: #FFF; //#EFEFEF;
|
||||
background-size:100%;
|
||||
}
|
||||
|
||||
ul.linklist_block a.linkbox
|
||||
{
|
||||
max-width:100%;
|
||||
padding:0;
|
||||
margin:5px;
|
||||
width: 6em;
|
||||
text-align:center;
|
||||
}
|
||||
ul.linklist_block a.linkbox:hover
|
||||
{background:lighten($color_schema_1,40%);
|
||||
}
|
||||
ul.linklist_block li
|
||||
{text-decoration: none;
|
||||
list-style:none;
|
||||
margin-bottom:2px;
|
||||
float:left;
|
||||
}
|
||||
ul.linklist_block li a i{
|
||||
display:block;
|
||||
vertical-align:middle;
|
||||
margin-right:6px;
|
||||
font-size:5em;
|
||||
line-height:70px;
|
||||
}
|
||||
ul.linklist_block { clear:left; float:none;}
|
||||
|
||||
1
app/controllers/.#crawler_controller.rb
Symbolic link
1
app/controllers/.#crawler_controller.rb
Symbolic link
@@ -0,0 +1 @@
|
||||
andreas@andreas-ThinkPad-S430.4992:1434372676
|
||||
@@ -21,13 +21,15 @@ class CrawlerController < ApplicationController
|
||||
end
|
||||
def move_to_news
|
||||
authorize! :doadmin, User
|
||||
|
||||
co=Crawlobject.find(params[:id])
|
||||
if co.objtype == 5 || co.objtype==6
|
||||
co.move_to_neuigkeit(User.find(Rails.configuration.crawlconfig[co.objtype]["user_id"]), Rubrik.find(Rails.configuration.crawlconfig[co.objtype]["rubrik_id"]))
|
||||
redirect_to co.something
|
||||
end
|
||||
|
||||
|
||||
end
|
||||
def do_crawl_news
|
||||
Crawlobject.crawl_news(5)
|
||||
Crawlobject.crawl_news(6)
|
||||
redirect_to action: :index
|
||||
end
|
||||
end
|
||||
|
||||
@@ -2,21 +2,23 @@
|
||||
<div class="container-fluid">
|
||||
<div class="row-fluid">
|
||||
<div class="span6">
|
||||
<ul class="linklist">
|
||||
<div>
|
||||
<ul class="linklist_block">
|
||||
<li>
|
||||
<%= link_to "Adressliste", internlist_fetprofiles_path ,class: :linkbox %>
|
||||
<%= link_to fa_icon("list")+"Adressliste", internlist_fetprofiles_path ,class: :linkbox %>
|
||||
</li>
|
||||
<li>
|
||||
<%= link_to "Admin" , admin_home_index_path, class: :linkbox if current_user.has_role?(:fetadmin) %>
|
||||
<%= link_to ff_icon("ffi1-setting")+"Admin" , admin_home_index_path, class: :linkbox if current_user.has_role?(:fetadmin) %>
|
||||
</li>
|
||||
<li>
|
||||
<%= link_to "Treeview" , treeview_home_index_path, class: :linkbox if current_user.has_role?(:fetadmin) %>
|
||||
<%= link_to ff_icon("fa-folder")+"Treeview" , treeview_home_index_path, class: :linkbox if current_user.has_role?(:fetadmin) %>
|
||||
</li>
|
||||
<li>
|
||||
<%= link_to "Crawler" , crawler_index_path, class: :linkbox if current_user.has_role?(:fetadmin) %>
|
||||
<%= link_to ff_icon("ffi1-newspaper9")+"Crawler" , crawler_index_path, class: :linkbox if current_user.has_role?(:fetadmin) %>
|
||||
</li>
|
||||
|
||||
</ul>
|
||||
</ul><br>
|
||||
</div>
|
||||
<div>Suche nach Protokollen
|
||||
<%= semantic_form_for :search,:remote=>true, :url=>search_documents_path, :html=>{:id=>"search_form",:class=>"", :method=>'get'} do |f| %>
|
||||
<%= f.input :query, :input_html => { :name => 'query' } , :label=>false, :class=>"search-query" %>
|
||||
|
||||
@@ -21,6 +21,7 @@
|
||||
resources :crawler, :only=>[] do
|
||||
collection do
|
||||
get :index
|
||||
get :do_crawl_news
|
||||
end
|
||||
member do
|
||||
get :move_to_news
|
||||
|
||||
Reference in New Issue
Block a user