26 |
26 |
|
27 |
27 |
<% if User.current.logged? || !Setting.login_required? %>
|
28 |
28 |
<div class="flyout-menu__search">
|
29 |
|
<%= form_tag({:controller => 'search', :action => 'index', :id => @project}, :method => :get ) do %>
|
|
29 |
<%= form_tag(search_path(id: @project), :method => :get ) do %>
|
30 |
30 |
<%= hidden_field_tag(controller.default_search_scope, 1, :id => nil) if controller.default_search_scope %>
|
31 |
31 |
<%= label_tag 'flyout-search', '⚲'.html_safe, :class => 'search-magnifier search-magnifier--flyout' %>
|
32 |
32 |
<%= text_field_tag 'q', @question, :id => 'flyout-search', :class => 'small js-search-input', :placeholder => l(:label_search) %>
|
... | ... | |
74 |
74 |
|
75 |
75 |
<% if User.current.logged? || !Setting.login_required? %>
|
76 |
76 |
<div id="quick-search">
|
77 |
|
<%= form_tag({:controller => 'search', :action => 'index', :id => @project}, :method => :get ) do %>
|
|
77 |
<%= form_tag(search_path(id: @project), :method => :get ) do %>
|
78 |
78 |
<%= hidden_field_tag(controller.default_search_scope, 1, :id => nil) if controller.default_search_scope %>
|
79 |
79 |
<label for='q'>
|
80 |
|
<%= link_to l(:label_search), {:controller => 'search', :action => 'index', :id => @project}, :accesskey => accesskey(:search) %>:
|
|
80 |
<%= link_to l(:label_search), search_path(id: @project), :accesskey => accesskey(:search) %>:
|
81 |
81 |
</label>
|
82 |
82 |
<%= text_field_tag 'q', @question, :size => 20, :class => 'small', :accesskey => accesskey(:quick_search) %>
|
83 |
83 |
<% end %>
|