- content_for :posts_title do
  Unread Posts
  = link_to hidden_posts_path do
    .view-button Hidden &raquo;
  = link_to unread_posts_path(started: (params[:started] != 'true')) do
    .view-button
      - if params[:started] == 'true'
        Show All Threads
      - else
        Only Show Opened Threads

= form_tag mark_posts_path, :method => :post do
  = render partial: 'posts/list', locals: {posts: @posts, show_unread_count: true, check_box_name: 'marked_ids[]', path: :unread_posts_path}
  - unless @posts.empty?
    %table
      %tr
        %td.right-align.padding-5{colspan: 8, class: cycle('even', 'odd')}
          = submit_tag "Hide from Unread", class: 'button'
          = submit_tag "Mark Read", class: 'button'
%br

= form_tag mark_boards_path, :method => :post do
  %table.float-left.form-table
    %tr
      %th Mark Entire Continuity
    %tr
      %td.even.padding-5.centered
        = select_tag :board_id, 
                     options_from_collection_for_select(Board.all, :id, :name, params[:board_id]), 
                     {class: 'chosen-select', prompt: '— Choose Continuity —'}
    %tr
      %th.subber
        = submit_tag "Hide from Unread", class: 'button'
        = submit_tag "Mark Read", class: 'button'

- content_for :posts_title do
  Unread Posts
  = link_to hidden_posts_path do
    .view-button Hidden &raquo;
  = link_to unread_posts_path(started: (params[:started] != 'true')) do
    .view-button
      - if params[:started] == 'true'
        Show All Threads
      - else
        Only Show Opened Threads

= form_tag mark_posts_path, :method => :post do
  = render partial: 'posts/list', locals: {posts: @posts, show_unread_count: true, check_box_name: 'marked_ids[]', path: :unread_posts_path}
  - unless @posts.empty?
    %table
      %tr
        %td.right-align.padding-5{colspan: 8, class: cycle('even', 'odd')}
          = submit_tag "Hide from Unread", class: 'button'
          = submit_tag "Mark Read", class: 'button'
%br

= form_tag mark_boards_path, :method => :post do
  %table.float-left.form-table
    %tr
      %th Mark Entire Continuity
    %tr
      %td.even.padding-5.centered
        = select_tag :board_id, 
                     options_from_collection_for_select(Board.all.sort_by{|b|b.name.downcase}, :id, :name, params[:board_id]),
                     {class: 'chosen-select', prompt: '— Choose Continuity —'}
    %tr
      %th.subber
        = submit_tag "Hide from Unread", class: 'button'
        = submit_tag "Mark Read", class: 'button'

Sort boards in Unread page dropdown by name
Sort boards in Unread page dropdown by name
