vr.list.html 1.7 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455
  1. {% extends "base.html" %}
  2. {% block title %}
  3. 投票记录列表
  4. {% endblock %}
  5. {% block content %}
  6. <div class="section section-breadcrumbs section-breadcrumbs-backend">
  7. <div class="container">
  8. <div class="row">
  9. <div class="col-md-12">
  10. <h1>投票记录列表</h1>
  11. </div>
  12. </div>
  13. </div>
  14. </div>
  15. <hr/>
  16. {{FilterHTML|safe}}
  17. <table class="table table-hover table-striped table-bordered table-condensed">
  18. <tr>
  19. <th>作品ID</th>
  20. <th>作品标题</th>
  21. <th>投票者账号</th>
  22. <th>投票者姓名</th>
  23. <th>参赛者账号</th>
  24. <th>参赛者姓名</th>
  25. <th>投票理由</th>
  26. <th>投票时间</th>
  27. </tr>
  28. {% for i in lPage %}
  29. <tr style="font-size: 13px;">
  30. <td>{{ i.target.uuid }}</td>
  31. <td>{{ i.target.title }}</td>
  32. <td>{{ i.voter.username }}</td>
  33. <td>{{ i.voter.nickname }}</td>
  34. <td>{{ i.target.author.user.username }}</td>
  35. <td>{{ i.target.author.user.nickname }}</td>
  36. <td>
  37. {{ i.comment |slice:"20" }}...
  38. <span id="cmt_{{i.id}}" style="display:none">{{i.comment}}</span>
  39. <button class="btn btn-xs btn-primary" onclick="alert($('#cmt_{{i.id}}').html());">详细</button>
  40. </td>
  41. <td>{{ i.time | date:"Y-m-d H:i:s" }}</td>
  42. </tr>
  43. {% endfor %}
  44. </table>
  45. {% include "common/paginator.html" %}
  46. {% endblock %}