|
@@ -1,7 +1,6 @@
|
|
|
{% load humanize %}
|
|
|
{% load naturalduration %}
|
|
|
<div>
|
|
|
- <h2>Last Scrobbles</h2>
|
|
|
<p>Today <b>{{counts.today}}</b> | This Week <b>{{counts.week}}</b> | This Month <b>{{counts.month}}</b> | This Year <b>{{counts.year}}</b> | All Time <b>{{counts.alltime}}</b></p>
|
|
|
</div>
|
|
|
<div class="row">
|
|
@@ -30,6 +29,22 @@
|
|
|
<button class="nav-link" id="profile-tab" data-bs-toggle="tab" data-bs-target="#latest-boardgames"
|
|
|
type="button" role="tab" aria-controls="profile" aria-selected="false">Board Games</button>
|
|
|
</li>
|
|
|
+ <li class="nav-item" role="presentation">
|
|
|
+ <button class="nav-link" id="profile-tab" data-bs-toggle="tab" data-bs-target="#latest-webpages"
|
|
|
+ type="button" role="tab" aria-controls="profile" aria-selected="false">Web Pages</button>
|
|
|
+ </li>
|
|
|
+ <li class="nav-item" role="presentation">
|
|
|
+ <button class="nav-link" id="profile-tab" data-bs-toggle="tab" data-bs-target="#latest-beers"
|
|
|
+ type="button" role="tab" aria-controls="profile" aria-selected="false">Beers</button>
|
|
|
+ </li>
|
|
|
+ <li class="nav-item" role="presentation">
|
|
|
+ <button class="nav-link" id="profile-tab" data-bs-toggle="tab" data-bs-target="#latest-books"
|
|
|
+ type="button" role="tab" aria-controls="profile" aria-selected="false">Books</button>
|
|
|
+ </li>
|
|
|
+ <li class="nav-item" role="presentation">
|
|
|
+ <button class="nav-link" id="profile-tab" data-bs-toggle="tab" data-bs-target="#latest-tasks"
|
|
|
+ type="button" role="tab" aria-controls="profile" aria-selected="false">Tasks</button>
|
|
|
+ </li>
|
|
|
</ul>
|
|
|
|
|
|
<div class="tab-content" id="myTabContent2">
|
|
@@ -46,9 +61,10 @@
|
|
|
</tr>
|
|
|
</thead>
|
|
|
<tbody>
|
|
|
- {% for scrobble in object_list %}
|
|
|
+ {{Track|length}}
|
|
|
+ {% for scrobble in Track %}
|
|
|
<tr>
|
|
|
- <td>{{scrobble.timestamp|naturaltime}}</td>
|
|
|
+ <td>{% if scrobble.in_progress %}Listening now{% else %}{{scrobble.timestamp|naturaltime}}{% endif %}</td>
|
|
|
{% if scrobble.track.album.cover_image %}
|
|
|
<td><a href="{{scrobble.track.album.get_absolute_url}}"><img src="{{scrobble.track.album.cover_image_small.url}}" width=25 height=25 style="border:1px solid black;" /></aa></td>
|
|
|
{% else %}
|
|
@@ -65,7 +81,6 @@
|
|
|
|
|
|
<div class="tab-pane fade show" id="latest-watched" role="tabpanel"
|
|
|
aria-labelledby="latest-watched-tab">
|
|
|
- <h2>Latest watched</h2>
|
|
|
<div class="table-responsive">
|
|
|
<table class="table table-striped table-sm">
|
|
|
<thead>
|
|
@@ -77,9 +92,9 @@
|
|
|
</tr>
|
|
|
</thead>
|
|
|
<tbody>
|
|
|
- {% for scrobble in video_scrobble_list %}
|
|
|
+ {% for scrobble in Video %}
|
|
|
<tr>
|
|
|
- <td>{{scrobble.timestamp|naturaltime}}</td>
|
|
|
+ <td>{% if scrobble.in_progress %}Watching now{% else %}{{scrobble.timestamp|naturaltime}}{% endif %}</td>
|
|
|
{% if scrobble.video.cover_image %}
|
|
|
<td><img src="{{scrobble.media_obj.cover_image_medium.url}}" width=25 height=25 style="border:1px solid black;" /></td>
|
|
|
{% else %}
|
|
@@ -105,15 +120,17 @@
|
|
|
<th scope="col">Title</th>
|
|
|
<th scope="col">Round</th>
|
|
|
<th scope="col">League</th>
|
|
|
+ <th scope="col">Time watched</th>
|
|
|
</tr>
|
|
|
</thead>
|
|
|
<tbody>
|
|
|
- {% for scrobble in sport_scrobble_list %}
|
|
|
+ {% for scrobble in SportEvent %}
|
|
|
<tr>
|
|
|
- <td>{{scrobble.timestamp|naturaltime}}</td>
|
|
|
+ <td>{% if scrobble.in_progress %}Watching now{% else %}{{scrobble.timestamp|naturaltime}}{% endif %}</td>
|
|
|
<td>{{scrobble.sport_event.title}}</td>
|
|
|
<td>{{scrobble.sport_event.round.name}}</td>
|
|
|
<td>{{scrobble.sport_event.round.season.league}}</td>
|
|
|
+ <td>{{scrobble.playback_position_seconds|natural_duration}}</td>
|
|
|
</tr>
|
|
|
{% endfor %}
|
|
|
</tbody>
|
|
@@ -123,7 +140,6 @@
|
|
|
|
|
|
<div class="tab-pane fade show" id="latest-podcasted" role="tabpanel"
|
|
|
aria-labelledby="latest-podcasted-tab">
|
|
|
- <h2>Latest Podcasted</h2>
|
|
|
<div class="table-responsive">
|
|
|
<table class="table table-striped table-sm">
|
|
|
<thead>
|
|
@@ -134,8 +150,9 @@
|
|
|
</tr>
|
|
|
</thead>
|
|
|
<tbody>
|
|
|
- {% for scrobble in podcast_scrobble_list %}
|
|
|
+ {% for scrobble in PodcastEpisode %}
|
|
|
<tr>
|
|
|
+ <td>{% if scrobble.in_progress %}Listening now{% else %}{{scrobble.timestamp|naturaltime}}{% endif %}</td>
|
|
|
<td>{{scrobble.timestamp|naturaltime}}</td>
|
|
|
<td>{{scrobble.podcast_episode.title}}</td>
|
|
|
<td>{{scrobble.podcast_episode.podcast}}</td>
|
|
@@ -148,7 +165,6 @@
|
|
|
|
|
|
<div class="tab-pane fade show" id="latest-videogames" role="tabpanel"
|
|
|
aria-labelledby="latest-videogames-tab">
|
|
|
- <h2>Latest Video Games</h2>
|
|
|
<div class="table-responsive">
|
|
|
<table class="table table-striped table-sm">
|
|
|
<thead>
|
|
@@ -156,14 +172,14 @@
|
|
|
<th scope="col">Date</th>
|
|
|
<th scope="col">Cover/Screenshot</th>
|
|
|
<th scope="col">Title</th>
|
|
|
- <th scope="col">Time played (mins)</th>
|
|
|
+ <th scope="col">Time played</th>
|
|
|
<th scope="col">Percent complete</th>
|
|
|
</tr>
|
|
|
</thead>
|
|
|
<tbody>
|
|
|
- {% for scrobble in videogame_scrobble_list %}
|
|
|
+ {% for scrobble in VideoGame %}
|
|
|
<tr>
|
|
|
- <td>{{scrobble.timestamp|naturaltime}}</td>
|
|
|
+ <td>{% if scrobble.in_progress %}Sessioning now{% else %}{{scrobble.timestamp|naturaltime}}{% endif %}</td>
|
|
|
{% if scrobble.screenshot %}
|
|
|
<td><img src="{{scrobble.screenshot_medium.url}}" width=25 height=25 style="border:1px solid black;" /></td>
|
|
|
{% else %}
|
|
@@ -184,7 +200,6 @@
|
|
|
|
|
|
<div class="tab-pane fade show" id="latest-boardgames" role="tabpanel"
|
|
|
aria-labelledby="latest-boardgames-tab">
|
|
|
- <h2>Latest Board Games</h2>
|
|
|
<div class="table-responsive">
|
|
|
<table class="table table-striped table-sm">
|
|
|
<thead>
|
|
@@ -192,13 +207,65 @@
|
|
|
<th scope="col">Date</th>
|
|
|
<th scope="col">Cover</th>
|
|
|
<th scope="col">Title</th>
|
|
|
- <th scope="col">Time played (mins)</th>
|
|
|
+ <th scope="col">Time played</th>
|
|
|
</tr>
|
|
|
</thead>
|
|
|
<tbody>
|
|
|
- {% for scrobble in boardgame_scrobble_list %}
|
|
|
+ {% for scrobble in BoardGame %}
|
|
|
<tr>
|
|
|
- <td>{{scrobble.timestamp|naturaltime}}</td>
|
|
|
+ <td>{% if scrobble.in_progress %}Tabling now{% else %}{{scrobble.timestamp|naturaltime}}{% endif %}</td>
|
|
|
+ <td><img src="{{scrobble.media_obj.cover_medium.url}}" width=25 height=25 style="border:1px solid black;" /></td>
|
|
|
+ <td><a href="{{scrobble.media_obj.get_absolute_url}}">{{scrobble.media_obj.title}}</a></td>
|
|
|
+ <td>{{scrobble.playback_position_seconds|natural_duration}}</td>
|
|
|
+ </tr>
|
|
|
+ {% endfor %}
|
|
|
+ </tbody>
|
|
|
+ </table>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+
|
|
|
+ <div class="tab-pane fade show" id="latest-webpages" role="tabpanel"
|
|
|
+ aria-labelledby="latest-webpages-tab">
|
|
|
+ <div class="table-responsive">
|
|
|
+ <table class="table table-striped table-sm">
|
|
|
+ <thead>
|
|
|
+ <tr>
|
|
|
+ <th scope="col">Date</th>
|
|
|
+ <th scope="col">Cover</th>
|
|
|
+ <th scope="col">Title</th>
|
|
|
+ <th scope="col">Time browsing</th>
|
|
|
+ </tr>
|
|
|
+ </thead>
|
|
|
+ <tbody>
|
|
|
+ {% for scrobble in WebPage %}
|
|
|
+ <tr>
|
|
|
+ <td>{% if scrobble.in_progress %}Browsing now{% else %}{{scrobble.timestamp|naturaltime}}{% endif %}</td>
|
|
|
+ <td><img src="{{scrobble.media_obj.cover_medium.url}}" width=25 height=25 style="border:1px solid black;" /></td>
|
|
|
+ <td><a href="{{scrobble.media_obj.get_absolute_url}}">{{scrobble.media_obj.title}}</a></td>
|
|
|
+ <td>{{scrobble.playback_position_seconds|natural_duration}}</td>
|
|
|
+ </tr>
|
|
|
+ {% endfor %}
|
|
|
+ </tbody>
|
|
|
+ </table>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+
|
|
|
+ <div class="tab-pane fade show" id="latest-beers" role="tabpanel"
|
|
|
+ aria-labelledby="latest-beers-tab">
|
|
|
+ <div class="table-responsive">
|
|
|
+ <table class="table table-striped table-sm">
|
|
|
+ <thead>
|
|
|
+ <tr>
|
|
|
+ <th scope="col">Date</th>
|
|
|
+ <th scope="col">Cover</th>
|
|
|
+ <th scope="col">Title</th>
|
|
|
+ <th scope="col">Time drinking</th>
|
|
|
+ </tr>
|
|
|
+ </thead>
|
|
|
+ <tbody>
|
|
|
+ {% for scrobble in Beer %}
|
|
|
+ <tr>
|
|
|
+ <td>{% if scrobble.in_progress %}Drinking now{% else %}{{scrobble.timestamp|naturaltime}}{% endif %}</td>
|
|
|
<td><img src="{{scrobble.media_obj.cover_medium.url}}" width=25 height=25 style="border:1px solid black;" /></td>
|
|
|
<td><a href="{{scrobble.media_obj.get_absolute_url}}">{{scrobble.media_obj.title}}</a></td>
|
|
|
<td>{{scrobble.playback_position_seconds|natural_duration}}</td>
|
|
@@ -208,5 +275,56 @@
|
|
|
</table>
|
|
|
</div>
|
|
|
</div>
|
|
|
+
|
|
|
+ <div class="tab-pane fade show" id="latest-books" role="tabpanel"
|
|
|
+ aria-labelledby="latest-books-tab">
|
|
|
+ <div class="table-responsive">
|
|
|
+ <table class="table table-striped table-sm">
|
|
|
+ <thead>
|
|
|
+ <tr>
|
|
|
+ <th scope="col">Date</th>
|
|
|
+ <th scope="col">Cover</th>
|
|
|
+ <th scope="col">Title</th>
|
|
|
+ <th scope="col">Time reading</th>
|
|
|
+ </tr>
|
|
|
+ </thead>
|
|
|
+ <tbody>
|
|
|
+ {% for scrobble in Book %}
|
|
|
+ <tr>
|
|
|
+ <td>{% if scrobble.in_progress %}Reading now{% else %}{{scrobble.timestamp|naturaltime}}{% endif %}</td>
|
|
|
+ <td><img src="{scrobble.media_obj.cover_medium.url}}" width=25 height=25 style="border:1px solid black;" /></td>
|
|
|
+ <td><a href="{{scrobble.media_obj.get_absolute_url}}">{{scrobble.media_obj.title}}</a></td>
|
|
|
+ <td>{{scrobble.playback_position_seconds|natural_duration}}</td>
|
|
|
+ </tr>
|
|
|
+ {% endfor %}
|
|
|
+ </tbody>
|
|
|
+ </table>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+
|
|
|
+ <div class="tab-pane fade show" id="latest-tasks" role="tabpanel"
|
|
|
+ aria-labelledby="latest-tasks-tab">
|
|
|
+ <div class="table-responsive">
|
|
|
+ <table class="table table-striped table-sm">
|
|
|
+ <thead>
|
|
|
+ <tr>
|
|
|
+ <th scope="col">Date</th>
|
|
|
+ <th scope="col">Title</th>
|
|
|
+ <th scope="col">Time doing</th>
|
|
|
+ </tr>
|
|
|
+ </thead>
|
|
|
+ <tbody>
|
|
|
+ {% for scrobble in Task %}
|
|
|
+ <tr>
|
|
|
+ <td>{% if scrobble.in_progress %}Doing now{% else %}{{scrobble.timestamp|naturaltime}}{% endif %}</td>
|
|
|
+ <td><a href="{{scrobble.media_obj.get_absolute_url}}">{{scrobble.media_obj.title}}</a></td>
|
|
|
+ <td>{{scrobble.playback_position_seconds|natural_duration}}</td>
|
|
|
+ </tr>
|
|
|
+ {% endfor %}
|
|
|
+ </tbody>
|
|
|
+ </table>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+
|
|
|
</div>
|
|
|
</div>
|