- col_count = 5
- col_count += 1 if !local_assigns[:hide_continuity] # Include continuity name
- col_count += 1 if local_assigns[:show_unread_count] # Include # Unread
- col_count += 1 if local_assigns.has_key? :check_box_name  # Include form check box tags
- post_args = local_assigns.except(:posts, :list)

%table
  %thead
    %tr
      %th{colspan: col_count}= content_for :posts_title
    %tr
      %th.sub.width-15
      %th.sub Thread
      - unless local_assigns[:hide_continuity]
        %th.sub Continuity
      %th.sub Authors
      %th.sub Replies
      - if local_assigns[:show_unread_count]
        %th.sub # Unread
      %th.sub Last Updated
      - if local_assigns[:check_box_name]
        %th.sub
  %tbody
    - posts.each do |post|
      - next unless post.visible_to?(current_user)
      = render partial: 'posts/list_item', locals: {post: post}.merge(post_args)
    - if posts.empty?
      %tr
        %td.centered.padding-10.no-posts{ class: cycle('even','odd'), colspan: col_count } — No posts yet —
- if posts.total_pages > 1
  = render partial: 'posts/paginator', locals: { paginated: @posts, path: (local_assigns[:path] || :posts_path) }

- col_count = 5
- col_count += 1 if !local_assigns[:hide_continuity] # Include continuity name
- col_count += 1 if local_assigns[:show_unread_count] # Include # Unread
- col_count += 1 if local_assigns.has_key? :check_box_name  # Include form check box tags
- post_args = local_assigns.except(:posts, :list)

%table
  %thead
    %tr
      %th{colspan: col_count}= content_for :posts_title
    %tr
      %th.sub.width-15
      %th.sub Thread
      - unless local_assigns[:hide_continuity]
        %th.sub Continuity
      %th.sub Authors
      %th.sub Replies
      - if local_assigns[:show_unread_count]
        %th.sub # Unread
      %th.sub Last Updated
      - if local_assigns[:check_box_name]
        %th.sub
  %tbody
    - posts.each do |post|
      - next unless post.visible_to?(current_user)
      = render partial: 'posts/list_item', locals: {post: post}.merge(post_args)
    - if posts.empty?
      %tr
        %td.centered.padding-10.no-posts{ class: cycle('even','odd'), colspan: col_count } — No posts yet —
- if posts.total_pages > 1
  = render partial: 'posts/paginator', locals: { paginated: posts, path: (local_assigns[:path] || :posts_path) }

Fix presumably-a-typo (@posts when the variable is posts?)
Fix presumably-a-typo (@posts when the variable is posts?)

(Works because they're usually synonyms since @posts is set in the
controller and then passed along, but isn't right, I don't think?)
