diff --git a/app/views/search/_search_form.rhtml b/app/views/search/_search_form.rhtml
new file mode 100644
index 0000000..f679676
--- /dev/null
+++ b/app/views/search/_search_form.rhtml
@@ -0,0 +1,44 @@
+<% form_tag({:action => 'index', :category_path => (@category ? @category.explode_path : [])}, :method => 'get') do%>
+
+
+
+ <%= text_field_tag 'query', @query, :id => 'popup-search-input', :size => 50 %>
+ <%= javascript_tag '$("popup-search-input").focus()' %>
+
+ <%= submit_button(:search, _('Search')) %>
+
+
+ <% if @category %>
+ <%= _('Search in:') %>
+
+ -
+ <%= radio_button_tag :search_whole_site, 'no', true %>
+ <%= _('Only in %{category}') % { :category => @category.full_name } %>
+
+ -
+ <%= radio_button_tag :search_whole_site, 'yes' %>
+ <%= _('Whole site') %>
+
+
+ <% end %>
+
+
+
<%= _('Search for:') %>
+
+ <% @search_in.map { |t,n| [t,gettext(n)] } .
+ sort_by(&:last).each do |thing, name| %>
+ -
+ <%= check_box_tag 'find_in[]', thing.to_s, true %>
+ <%= name %>
+
+ <% end %>
+
+
+
+
+ <% button_bar do %>
+ <%= submit_button(:search, _('Search')) %>
+ <%= lightbox_close_button(_('Close')) if lightbox? %>
+ <% end %>
+
+<% end %>
--
libgit2 0.21.2