calraijintaiko/caltaiko

View on GitHub
app/views/pages/media_videos.html.haml

Summary

Maintainability
Test Coverage
:ruby
  title = 'Videos | Cal Raijin Taiko'
  description = "Watch videos of 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
    VIDEOS
    - if user_signed_in?
      .right
        = render 'layouts/button_link', link: new_video_path,
          tooltip: 'Create a new video', link_class: 'add-button',
          button: 'plus'

= render 'layouts/accordion', by_key: @videos_by_year, id: 2,
  partial: 'videos/videos_feed', active_key: @videos_active_year