-title "List of Errors"

-content_for :header do
  %div{:"data-role" => "navbar"}
    %ul
      %li
        %a(href="/?resolved=1")
          Resolved
      %li
        %a(href="/?unassigned=1")
          Unassigned


-content_for :body do
  =list_view(@errors, :filter => true) { |error| [error_path(error), h(error.message)] }

-content_for :footer do
  %div{:"data-role" => "navbar"}
    %ul
      -(BugHunter::Project.instance.members||[]).each do |member|
        %li
          %a(href="/?assignee=#{member}")
            &=member