% extend PairwisePlugin::Helpers::ViewerHelper %> <% extend PairwisePlugin::Helpers::SuggestionsHelper %>
">
<%= 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' %> | |
| <%= hidden_field_tag 'pending', params[:pending] %> <%= hidden_field_tag 'reproved', params[:reproved] %> <%= text_field_tag( 'filter[data]', params[:filter] ? params[:filter][:data]:'', :placeholder => _('Type words about ideas/suggestions you\'re looking for'), :class => "pairwise_search_field" ) %> | <%= submit_button :search, _('Search') %> |
| "> <%= 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 %> |