extends layout

block content
  #eventdesc
    h1= event.name
    p #{event.yes_rsvp_count} RSVPs

  #winner
    h1 Winner: #{rsvp.member.name}
    if rsvp.member_photo
      img.member(src='#{rsvp.member_photo.photo_link}')
    else
      p (no photo)

  #links
    a.button#rollagain(href='/#{title}')
      p Roll again




extends layout

block content
  #eventdesc
    h1= event.name
    p #{event.yes_rsvp_count} RSVPs

  #winner
    h1 Winner is ...?
    img.member(src='/images/default.jpg')

  #links
    .btn-group
      button.btn.btn-danger.btn-lg#rolling Start Rolling
    .btn-group
      button.btn.btn-danger.btn-lg#stop Stop
  p
  
  #list
    each val in rsvplist
      .member-cell
        if val.member_photo
          img.list(src='#{val.member_photo.photo_link}', title='#{val.member.name}')
        else
          img.list(src='/images/default.jpg', title='#{val.member.name}')
Add rolling and stop button.
Add rolling and stop button.

Add a list of all the RSVPs for easier implementation. In this way, we
don't need another roundtrip to the server to get the member photo.
