.breadcrumb= link_to "← Back to home page", root_path %h1 Archive %table#archive %tr %th %th Normal %th Hard %th Expert - @puzzles.each do |date, dps| %tr{ class: cycle("even", "odd") } %td= date.strftime("%B %-d, %Y") %td - if dps.has_key? "normal" %ul - dps["normal"].each do |puzzle| %li= link_to "\##{puzzle.id}", puzzle %td - if dps.has_key? "hard" %ul - dps["hard"].each do |puzzle| %li= link_to "\##{puzzle.id}", puzzle %td - if dps.has_key? "expert" %ul - dps["expert"].each do |puzzle| %li= link_to "\##{puzzle.id}", puzzle