'
+ unless index.nil?
+ index = index>50 ? index-50 : 0
+ deadline = 150
+ content = content[index, deadline]
+ else
+ content = content[0, 100]
+ end
+ end
+
+ return content
+ end
+
+end
\ No newline at end of file
diff --git a/app/views/layouts/_orbit_bar.html.erb b/app/views/layouts/_orbit_bar.html.erb
index 5fe0ad5..a88e966 100644
--- a/app/views/layouts/_orbit_bar.html.erb
+++ b/app/views/layouts/_orbit_bar.html.erb
@@ -1,7 +1,7 @@
-
+
\ No newline at end of file
diff --git a/app/views/layouts/_right_menu.html.erb b/app/views/layouts/_right_menu.html.erb
index 3d64dae..e90dab1 100644
--- a/app/views/layouts/_right_menu.html.erb
+++ b/app/views/layouts/_right_menu.html.erb
@@ -2,14 +2,8 @@
-
diff --git a/app/views/layouts/_search.erb b/app/views/layouts/_search.erb
new file mode 100644
index 0000000..1c4d93e
--- /dev/null
+++ b/app/views/layouts/_search.erb
@@ -0,0 +1,55 @@
+
+
\ No newline at end of file
diff --git a/config/routes.rb b/config/routes.rb
index f387f91..baac9f1 100644
--- a/config/routes.rb
+++ b/config/routes.rb
@@ -25,6 +25,9 @@ Orbit::Application.routes.draw do
get 'basic_infos/confirmation' => "basic_infos#confirmation"
post 'basic_infos/role_update' => "basic_infos#role_update"
match 'basic_infos/basic_info_update' => "basic_infos#basic_info_update"
+
+ get "site_search" => "site_search#search"
+
# routes for admin
namespace :admin do
match 'user_actions' => 'user_actions#index'