rubycentral/cfp-app

View on GitHub
app/views/speakers/_speaker.html.haml

Summary

Maintainability
Test Coverage
.speaker.clearfix
  %strong= speaker.name

  - if withdraw && speaker.proposal.speakers.count > 1 && !speaker.proposal.finalized?
    %p= link_to "Withdraw",
        speaker_path(speaker.id),
        method: :delete,
        class: "btn btn-danger btn-sm pull-right remove-speaker",
        data: { confirm: "This will remove #{speaker.name} from this proposal. Are you sure you want to do this?" }

  = simple_format speaker.bio

  %strong First time speaker:
  = simple_format boolean_to_words(speaker.first_time_speaker)

  %strong Age:
  = simple_format speaker.age_range

  %strong Pronouns:
  = simple_format speaker.pronouns

  %strong Ethnicity:
  = simple_format speaker.ethnicity
%hr