series_detail.html 1.8 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556
  1. {% extends "base_list.html" %}
  2. {% load static %}
  3. {% block title %}{{object.title}}{% if object.tv_series %} - {{object.tv_series}}{% endif %}{% endblock %}
  4. {% block head_extra %}
  5. <style>
  6. .cover {float:left; width:150px; margin-right:10px;}
  7. .summary {float:left; width:600px; margin-left:10px;}
  8. </style>
  9. {% endblock %}
  10. {% block lists %}
  11. <div class="row">
  12. {% if object.cover_image %}
  13. <div class="cover"><img class="cover" src="{{object.cover_image.url}}" /></div>
  14. {% endif %}
  15. <div class="summary">
  16. {% if object.plot%}
  17. <p>{{object.plot|safe|linebreaks|truncatewords:160}}</p>
  18. <hr />
  19. {% endif %}
  20. <p style="float:right;">
  21. <a href="{{object.imdb_link}}"><img src="{% static " images/imdb-logo.png" %}" width=35></a>
  22. </p>
  23. </div>
  24. </div>
  25. <div class="row">
  26. <div class="col-md">
  27. <h3>Last scrobbles</h3>
  28. <div class="table-responsive">
  29. <table class="table table-striped table-sm">
  30. <thead>
  31. <tr>
  32. <th scope="col">Date</th>
  33. <th scope="col">Title</th>
  34. <th scope="col">Season</th>
  35. <th scope="col">Episode</th>
  36. </tr>
  37. </thead>
  38. <tbody>
  39. {% for scrobble in scrobbles %}
  40. <tr>
  41. <td>{{scrobble.timestamp}}</td>
  42. <td><a href="{{scrobble.media_obj.get_absolute_url}}">{{scrobble.media_obj.title}}</a></td>
  43. <td>{{scrobble.media_obj.season_number}}</td>
  44. <td>{{scrobble.media_obj.episode_number}}</td>
  45. </tr>
  46. {% endfor %}
  47. </tbody>
  48. </table>
  49. </div>
  50. </div>
  51. </div>
  52. {% endblock %}