<% provide(:title, "You have used all TestDrive lesson credits") %>

<p>
  Hello <%= @student.name %>,
</p>

<p>
  We hope you enjoyed your JamClass lesson today with <%= @teacher.name %>. You have now used all your TestDrive credits.

  <% if !@student.has_rated_teacher(@teacher) %>
    Please <a href="<%= @teacher.ratings_url %>" style="color:#fc0">rate your teacher</a> now for today’s lesson to
    help other students in the community find the best instructors.
  <% end %>
</p>
<p>
  If you clicked with one of your TestDrive instructors, here are links to each teacher’s listing. You can use the
  link to your favorite to book single or weekly recurring lessons with the best instructor for you!
</p>
<% @student.recent_test_drive_teachers.each do |teacher| %>

  <table>
    <tr>
      <td width="58" align="left" valign="top">
        <p style="padding:2px;width:54px;height:54px;background-color:#ed3618;-webkit-border-radius:28px;-moz-border-radius:28px;border-radius:28px;margin-right:10px">
          <img src="<%= teacher.resolved_photo_url %>" width="54" height="54" style="-webkit-border-radius:26px;-moz-border-radius:26px;border-radius:26px;">
        </p></td>
      <td><p>
        <font size="3" color="#AAAAAA" face="Arial, Helvetica, sans-serif"><a href="<%= teacher.teacher_profile_url %>"><%= teacher.name %></a></font>
      </p>
      </td>
    </tr>
  </table>

<% end %>

<p>
  And if you had technical problems during your lesson, or have questions, or would like to make suggestions on how
  to improve JamClass,
  please email us at <a href="mailto:support@jamkazam.com" style="color:#fc0">support@jamkazam.com</a>.</p>
<br/>

<p>
  Best Regards,<br>Team JamKazam
</p>



