- provide :title, @sweep.title

%ol.breadcrumb
  %li= link_to 'Projects', projects_path
  %li= link_to @project.name, @project
  %li= @sweep.title

%h1= yield :title
%p.help= simple_format @sweep.description

- if pending = @sweep.pending_snapshots.presence
  %h2 Pending
  %ul
    - pending.each do |snapshot|
      %li
        = link_to snapshot_path(snapshot), snapshot
        %small= snapshot.viewport.to_s

- if accepted = @sweep.accepted_snapshots.presence
  %h2 Accepted
  %ul
    - accepted.each do |snapshot|
      %li
        = link_to snapshot.title, snapshot
        %small= snapshot.viewport.to_s

- if rejected = @sweep.rejected_snapshots.presence
  %h2 Rejected
  = render rejected

- if needs_review = @sweep.under_review_snapshots.presence
  %h2 Needs review
  = render needs_review

- provide :title, @sweep.title

%ol.breadcrumb
  %li= link_to 'Projects', projects_path
  %li= link_to @project.name, @project
  %li= link_to 'Sweeps', project_sweeps_path(@project)
  %li= @sweep.title

%h1= yield :title
%p.help= simple_format @sweep.description

- if pending = @sweep.pending_snapshots.presence
  %h2 Pending
  %ul
    - pending.each do |snapshot|
      %li
        = link_to snapshot_path(snapshot), snapshot
        %small= snapshot.viewport.to_s

- if accepted = @sweep.accepted_snapshots.presence
  %h2 Accepted
  %ul
    - accepted.each do |snapshot|
      %li
        = link_to snapshot.title, snapshot
        %small= snapshot.viewport.to_s

- if rejected = @sweep.rejected_snapshots.presence
  %h2 Rejected
  = render rejected

- if needs_review = @sweep.under_review_snapshots.presence
  %h2 Needs review
  = render needs_review

Add missing breadcrumb component for sweep page
Add missing breadcrumb component for sweep page

The link to all sweeps for a project was missing from the sweep page.
