<span class="user" style="font-size: 15px">
  <div data-kls="HomeworkAttach" data-id="2" data-dimension="quality" data-average="3.25" class="rateable div_inline jDisabled"
       style="height: 20px; width: 115px; overflow: hidden; z-index: 1; position: relative;">
    <% if stars != nil %>
        <div class="jRatingColor" style="width: <%=stars.to_f * 20 %>%;"></div>
    <% else %>
        <div class="jRatingColor" style="width: 0px;"></div>
    <% end %>
    <div class="jRatingAverage" style="width: 0px; top: -20px;"></div>
    <div class="jStar" style="width: 115px; height: 20px; top: -40px;
              background: url('/images/seems_rateable/stars.png') repeat-x scroll 0% 0% transparent;">
    </div>
  </div>
</span>