Clean up the video detail page

This commit is contained in:
2023-03-02 16:11:19 -05:00
parent 654a64e82d
commit 2775851474

View File

@ -1,11 +1,9 @@
{% extends "base_detail.html" %} {% extends "base_detail.html" %}
{% block title %}{{object.name}}{% endblock %} {% block title %}{{object.title}}{% if object.tv_series %} - {{object.tv_series}}{% endif %}{% endblock %}
{% block details %} {% block details %}
<div class="row"> <div class="row">
<h2>{{object.tv_series}}</h2>
<div class="col-md"> <div class="col-md">
<h3>Last scrobbles</h3> <h3>Last scrobbles</h3>
<div class="table-responsive"> <div class="table-responsive">
@ -14,9 +12,11 @@
<tr> <tr>
<th scope="col">Date</th> <th scope="col">Date</th>
<th scope="col">Title</th> <th scope="col">Title</th>
{% if object.tv_series %}
<th scope="col">Series</th> <th scope="col">Series</th>
<th scope="col">Season</th> <th scope="col">Season</th>
<th scope="col">Episode</th> <th scope="col">Episode</th>
{% endif %}
</tr> </tr>
</thead> </thead>
<tbody> <tbody>
@ -24,9 +24,11 @@
<tr> <tr>
<td>{{scrobble.timestamp}}</td> <td>{{scrobble.timestamp}}</td>
<td>{{scrobble.video.title}}</td> <td>{{scrobble.video.title}}</td>
{% if object.tv_series %}
<td>{{scrobble.video.tv_series}}</td> <td>{{scrobble.video.tv_series}}</td>
<td>{{scrobble.video.season_number}}</td> <td>{{scrobble.video.season_number}}</td>
<td>{{scrobble.video.episode_number}}</td> <td>{{scrobble.video.episode_number}}</td>
{% endif %}
</tr> </tr>
{% endfor %} {% endfor %}
</tbody> </tbody>
@ -34,4 +36,4 @@
</div> </div>
</div> </div>
</div> </div>
{% endblock %} {% endblock %}