<%= ts("My Inbox") %> (<%= ts("%{total} comments, %{unread} unread", total: @inbox_total, unread: @unread) %>)

<%= flash_div :comment_error, :comment_notice %> <% # Filters button for narrow screens jumps to filters when JavaScript is disabled and opens filters when JavaScript is enabled %> <% unless @inbox_comments.blank? %> <%= will_paginate @inbox_comments %> <%= form_tag user_inbox_path(@user, page: params[:page], filters: @filters), method: :put, id: "inbox-form", class: "inbox manage" do %>
<%= ts("Mass Edit Options") %>
<%= ts("List of Comments") %>
    <% @inbox_comments.each do |inbox_comment| %> <% feedback_comment = inbox_comment.feedback_comment %>
  1. <% if !can_see_hidden_comment?(feedback_comment) %>

    <%= ts("(This comment is under review by an admin and is currently unavailable.)") %>

    <% else %> <%= render "inbox_comment_contents", feedback_comment: feedback_comment %> <% end %>
    <%= ts("Comment Actions") %>
  2. <% end %>
<%= ts("Mass Edit Options") %>
<% end %> <% end %> <%= form_tag(user_inbox_path(@user), method: :get, class: "narrow-hidden filters", id: "inbox-filters") do %>

<%= ts("Filter") %>

<%= field_set_tag do %>
<%= ts("Filter by read") %>
<%= ts("Filter by replied to") %>
<%= ts("Sort by date") %>
<%= ts("Submit") %>
<%= submit_tag ts("Filter") %>
<% end %> <% # On narrow screens, link jumps to top of index when JavaScript is disabled and closes filters when JavaScript is enabled %> <% end %> <%= will_paginate @inbox_comments %>