<%= text_field_tag 'q', @question, :size => 30 %>
<%= check_box_tag 'scope[]', 'issues', (@scope.include? 'issues') %>
<%= check_box_tag 'scope[]', 'news', (@scope.include? 'news') %>
<%= check_box_tag 'scope[]', 'documents', (@scope.include? 'documents') %>
<% if @project.wiki %>
<%= check_box_tag 'scope[]', 'wiki', (@scope.include? 'wiki') %>
<% end %>
<%= check_box_tag 'all_words', 1, @all_words %> <%= l(:label_all_words) %>
<% if e.is_a? Issue %>
<%= link_to "#{e.tracker.name} ##{e.id}", :controller => 'issues', :action => 'show', :id => e %>: <%= highlight_tokens(h(e.subject), @tokens) %>
<%= highlight_tokens(e.description, @tokens) %>
<%= e.author.name %>, <%= format_time(e.created_on) %>
<% elsif e.is_a? News %>
<%=l(:label_news)%>: <%= link_to highlight_tokens(h(e.title), @tokens), :controller => 'news', :action => 'show', :id => e %>
<%= highlight_tokens(e.description, @tokens) %>
<%= e.author.name %>, <%= format_time(e.created_on) %>
<% elsif e.is_a? Document %>
<%=l(:label_document)%>: <%= link_to highlight_tokens(h(e.title), @tokens), :controller => 'documents', :action => 'show', :id => e %>
<%= highlight_tokens(e.description, @tokens) %>
<%= format_time(e.created_on) %>
<% elsif e.is_a? WikiPage %>
<%=l(:label_wiki)%>: <%= link_to highlight_tokens(h(e.pretty_title), @tokens), :controller => 'wiki', :action => 'index', :id => @project, :page => e.title %>
<%= highlight_tokens(e.content.text, @tokens) %>
<%= e.content.author ? e.content.author.name : "Anonymous" %>, <%= format_time(e.content.updated_on) %>
<% end %>