%= render partial: "projects/header", locals: {
project: @project,
subtitle: "#{pluralize(@tickets.count, "tickets")} for"} %>
<%= link_to "Open Tickets", project_open_tickets_path(@project), class: "btn btn-default btn-toggle" %>
<%= link_to "New Ticket", new_ticket_path(@project), :class => "btn btn-default" if can?(:create, @project.tickets.build) %>
<%= link_to "Download for Excel", {format: :xls}, :class => "btn btn-default" %>
<%= render "tickets" %>