calraijintaiko/caltaiko

View on GitHub
app/views/performances/past.html.haml

Summary

Maintainability
Test Coverage
:ruby
  title = 'Past Performances | Cal Raijin Taiko'
  description = "Check out some of Cal Raijin Taiko's past performances!" \
    ' Since our founding in 2005, Cal Raijin Taiko has performed at' \
    ' community and campus events all across the Bay Area.'
  image = URI.join(root_url, image_path('logo.png'))

  meta title: title, description: description,
       og: { title: title, description: description, image: image,
             url: request.original_url }

%header.row
  %h1.small-12.column
    PAST PERFORMANCES
    - if user_signed_in?
      .right
        = render 'layouts/button_link', link: new_performance_path,
          tooltip: 'Create a new performance', link_class: 'add-button',
          button: 'plus'

= render 'layouts/accordion', by_key: @by_year, active_key: @active_year,
  partial: 'performances/thumbnail_feed', id: 1