<% extend PairwisePlugin::Helpers::ViewerHelper %> <% extend PairwisePlugin::Helpers::SuggestionsHelper %>

<%= _("Pairwise Question") %>

<%= _("Question text" ) %>:

<%= @pairwise_content.name %>
<%= pairwise_result_link _("Results"), @pairwise_content %>
<% if flash[:error] %>
<%= flash[:error] %>
<% end %> <% if flash[:notice] %>
<%= flash[:notice] %>
<% end %>
<% if params[:pending] == '1' %> <% end %>
">
<%= link_to_if has_param_pending_choices?, _('Ideas'), :pending => '' %>
">
<%= link_to_if ! has_param_pending_choices?, _('Suggestions'), :pending => '1', :reproved => '' %>
  "> <%= link_to_if has_param_reproved_choices?, _('Pending'), :pending => '1', :reproved => '' %> "> <%= link_to_if ! has_param_reproved_choices?, _('Reproved'), :pending => '1', :reproved => '1' %>

<%= form_for( :filter, { :action => :index, :controller => 'pairwise_plugin_suggestions', :profile => profile.identifier }) do %> <% end %>
<% @choices.each do |choice| %> <% end %>
"> <%= link_to_sort_choices(@pairwise_content, _("Text"), "data") %> "> <%= link_to_sort_choices(@pairwise_content, _("Date"), "created_date") %> "> <%= link_to_sort_choices(@pairwise_content, _("Author"), "visitor_identifier") %>
<%= choice.data.html_safe %> <%= show_date choice.created_at %> <%= choice.user_created ? choice.creator_identifier : profile.identifier %> <%= link_to_edit_choice(@pairwise_content, choice) unless choice.reproved %> <% unless choice.active || choice.reproved %> | <%= link_to_approve_choice(@pairwise_content, choice, params)%> | <%= link_to_reprove_idea @pairwise_content, choice, 'reprove', params %> <% end %>
<%= pagination_for_choices(@choices) %>