<%= discussions_reset_query_link %>
<%= yield :extra_filters %> <%= discussion_dropdown_filter :sort, Discussion.sorting_filters do |sorting_filter| %> <%= t sorting_filter %> <% end %> <% if current_user&.moderator_here? %>
<%= label_tag :requires_moderator_response, t(:requires_attention) %> <%= check_box_tag :requires_moderator_response, true, discussion_filter_params[:requires_moderator_response], class: 'form-input', onclick: 'mumuki.Forum.discussionsToggleCheckbox($(this))' %>
<% end %>
<% if @filtered_discussions.empty? %>
<%= fa_icon('exclamation-circle', class: 'fa-lg') %>
<%= t :no_discussions %>
<% else %>
<% @filtered_discussions.each do |discussion| %> <%= link_to exercise_discussion_path(discussion.exercise.id, discussion) do %>
<%= discussion_messages_icon(discussion) %> <% unless @debatable.respond_to? :language %>
<%= language_icon(discussion.exercise.language) %>
<% end %>
<%= discussion_status_fa_icon(discussion) %> <%= discussion.exercise.name %> <% if discussion.last_moderator_access_visible_for?(current_user) %>
<%= profile_picture_for(discussion.last_moderator_access_by, height: 32) %> <%= discussion.last_moderator_access_by.name_initials %>
<% end %>
<%= discussion.description %>
<% end %> <% end %>
<%= paginate @filtered_discussions %>
<% end %>