<% html_title l(:label_questions) %>
<%= link_to(l(:label_questions_new), {:controller => 'questions', :action => 'new', :section_id => @section}, :class => 'icon icon-add') if User.current.allowed_to?(:add_questions, @project) %> <%= link_to(l(:label_questions_section_edit), {:controller => 'questions_sections', :action => 'edit', :id => @section}, :class => 'icon icon-edit') if @section && User.current.allowed_to?(:manage_sections, @project) %>
<%= question_breadcrumb @section %>

<%= @section ? @section.name : l(:label_questions)%>

<% if @section && !@section.description.blank? %> <%= @section.description %> <% end %>
<%= form_tag({:controller => "questions", :action => "index"}, :method => :get, :id => "query_form") do %> <%= text_field_tag(:topic_search, params[:topic_search], :autocomplete => "off", :class => "questions-search", :placeholder => l(:label_questions_search) ) %> <%= javascript_tag "observeSearchfield('topic_search', 'topics_list', '#{ escape_javascript(autocomplete_for_subject_questions_path(:project_id => @project, :section_id => @section)) }')" %> <% end %>
<%= render :partial => "questions/question_list" %>
<% content_for :sidebar do %> <%= render :partial => "questions/latest_topics" %> <%= render :partial => "questions/popular_topics" %> <% end %>