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:') %>

+ + <% end %> + +
+

<%= _('Search for:') %>

+ +
+
+ + <% button_bar do %> + <%= submit_button(:search, _('Search')) %> + <%= lightbox_close_button(_('Close')) if lightbox? %> + <% end %> + +<% end %> -- libgit2 0.21.2