rubycentral/cfp-app

View on GitHub
app/views/programs/_detail.html.haml

Summary

Maintainability
Test Coverage
.program-session-detail.hidden{ id: dom_id(program_session),  data: { 'fly-out-target': 'listItem' } }
  .program-session-title
    = program_session.title

  .program-session-tags
    %span.session-format-tag{ class: "#{current_website.session_format_tag_class(program_session.session_format)}" }
      = current_website.session_format_name(program_session.session_format)

    -if program_session.track
      %span.track-tag
        %span.track-dot{ class: "#{current_website.track_background(program_session.track)}" }
        = program_session.track_name

  .program-session-about
    %span About
    = program_session.abstract.html_safe
    - if program_session.video_url.present?
      %a{ :href => "#{program_session.video_url}", :title => "Session Video", :target => "_blank" }
        Video
    - if program_session.slides_url.present?
      %a{ :href => "#{program_session.slides_url}", :title => "Session Slides", :target => "_blank" }
        Slides

  .program-session-authors
    - program_session.speakers.each do |s|
      .speaker-name
        = s.speaker_name
      .speaker-bio
        = s.bio