<div id="r<%ReviewID%>" class="review">
<%~if show_link_info%>
  <%~set ID = $LinkID%>
  <%~Links::Utils::load_link_info%>
<%include link.html%>
  <%~set ID = ''%>
<%~endif%>
  <h4 class="reviewsubject">
    <%escape_html Review_Subject%><%if Review_CanModify%> <span class="hsmall">(<a href="<%config.db_cgi_url%>/review.cgi?edit_review=1;ID=<%Review_LinkID%>;ReviewID=<%ReviewID%>;confirmed=1">edit</a>)</span><%endif%>
    <img src="<%Links::Utils::image_url("stars-5-${Review_Rating}.gif")%>" alt="<%Review_Rating%> out of 5 stars" title="<%Review_Rating%> out of 5 stars" />
    <%if Review_IsNew%><span class="new-item"><span>new</span></span><%endif%>
  </h4>
<%~if Review_ByLine%>
  <h5 class="reviewbyline">
    <%escape_html Review_ByLine%>
  </h5>
<%~endif%>
  <p class="reviewer">
    Reviewed by: <%if Review_GuestName%><a href="mailto:<%Review_GuestEmail%>"><%Review_GuestName%></a><%else%><a href="<%config.db_cgi_url%>/review.cgi?username=<%Review_Owner%>"><%Review_Owner%></a><%endif%>, <%Review_Date%><%if Review_ModifyDate%> (Modified: <%Review_ModifyDate%>)<%endif%>
  </p>
<%~if Review_Contents%>
  <div class="reviewcontent">
  <%~if config.review_convert_br_tags%>
    <%Review_Contents%>
  <%~else%>
    <%escape_html Review_Contents%>
  <%~endif%>
  </div>
<%~endif%>
  <div class="reviewhelpful clear">
    <span><%if Num%><%Review_WasHelpful%> of <%Num%> people found this review helpful<%endif%></span>
    <form action="<%config.db_cgi_url%>/review.cgi">
      <%if nh and nh != 1%><input type="hidden" name="nh" value="<%escape_html nh%>" /><%endif%>
      <input type="hidden" name="helpful" value="1" />
      <%if ID%><input type="hidden" name="ID" value="<%escape_html ID%>" /><%endif%>
      <%if username%><input type="hidden" name="username" value="<%escape_html username%>" /><%endif%>
      <%if ReviewID%><input type="hidden" name="ReviewID" value="<%escape_html ReviewID%>" /><%endif%>
      <span>
      <%~if last_helpful%>
        Thanks for the feedback.
      <%~else%>
        Was this review helpful to you? <input type="submit" name="yes" value="yes" class="submit" /> <input type="submit" name="no" value="no" class="submit" />
      <%~endif%>
      </span>
    </form>
  </div>
</div>
