{% extends "base_list.html" %} {% load form_tags %} {% load mathfilters %} {% load naturalduration %} {% load static %} {% block title %}{{object.name}}{% endblock %} {% block head_extra %} {% endblock %} {% block lists %}

{% if object.media_type == "Video" %}🎬{% elif object.media_type == "Track" %}🎵{% elif object.media_type == "PodcastEpisode" %}🎙️{% elif object.media_type == "SportEvent" %}⚽{% elif object.media_type == "Book" %}📚{% elif object.media_type == "Paper" %}📄{% elif object.media_type == "VideoGame" %}🎮{% elif object.media_type == "BoardGame" %}🎲{% elif object.media_type == "GeoLocation" %}📍{% elif object.media_type == "Trail" %}🥾{% elif object.media_type == "Beer" %}🍺{% elif object.media_type == "Puzzle" %}🧩{% elif object.media_type == "Food" %}🍔{% elif object.media_type == "Task" %}✅{% elif object.media_type == "WebPage" %}🌐{% elif object.media_type == "LifeEvent" %}🎉{% elif object.media_type == "Mood" %}😊{% elif object.media_type == "BrickSet" %}🧱{% elif object.media_type == "Channel" %}📺{% endif %} {% if object.media_obj.get_absolute_url %} {% endif %} {{ object.media_obj.title }} {% if object.media_obj.get_absolute_url %} {% endif %} {% if user.is_authenticated and object.media_obj %} {% endif %}

{{ object.media_obj.subtitle }}

{% if object.media_type == "SportEvent" %} {% for team in object.media_obj.teams.all %} {% endfor %} {% endif %} {% if object.media_type == "Task" and object.logdata.title %}

{{ object.logdata.title }}

{% endif %}

{{ object.local_timestamp }}

{% if user.is_authenticated and object.user == user %}
{{ object.get_visibility_display }}
{% csrf_token %}
{% if object.visibility == 'shared' and object.get_share_url %} Share link: {{ request.scheme }}://{{ request.get_host }}{{ object.get_share_url }}
{% csrf_token %}
{% if object.share_view_count %} {{ object.share_view_count }} view{{ object.share_view_count|pluralize }} {% endif %} Analytics {% endif %}
{% endif %} {% if object.media_type == "Track" and has_mopidy_uri and user.profile.mopidy_api_url %}
{% csrf_token %}
{% if user.profile.monthly_mopidy_playlist_pattern %}
{% csrf_token %}
{% endif %} {% endif %} {% if object.media_type == "Track" %}

Source: {{ object.source }}{% if object.log.mopidy_source %} ({{ object.log.mopidy_source|capfirst }}){% endif %}

{% endif %} {% if object.media_type == "Task" and object.log.weight %}
Weight
{{ object.log.weight }} {% if object.log.unit_type == "imperial" %}lbs{% else %}kg{% endif %}
{% if object.log.body_fat %}
Body Fat
{{ object.log.body_fat }}%
{% endif %} {% if object.log.bmi %}
BMI
{{ object.log.bmi }}
{% endif %} {% if object.log.muscle %}
Muscle
{{ object.log.muscle }} {% if object.log.unit_type == "imperial" %}lbs{% else %}kg{% endif %}
{% endif %} {% if object.log.bone %}
Bone
{{ object.log.bone }} {% if object.log.unit_type == "imperial" %}lbs{% else %}kg{% endif %}
{% endif %} {% if object.log.water %}
Water
{{ object.log.water }}%
{% endif %} {% if object.log.visceral_fat %}
Visceral Fat
{{ object.log.visceral_fat }}
{% endif %} {% if object.log.waist %}
Waist
{{ object.log.waist }} {% if object.log.unit_type == "imperial" %}in{% else %}cm{% endif %}
{% endif %} {% if object.log.lbm %}
Lean Mass
{{ object.log.lbm }} {% if object.log.unit_type == "imperial" %}lbs{% else %}kg{% endif %}
{% endif %} {% if object.log.calories %}
Calories
{{ object.log.calories }}
{% endif %} {% if object.log.comment %}
Comment
{{ object.log.comment }}
{% endif %}
{% endif %} {% if object.media_type == "Task" and object.logdata.description %}

{{ object.logdata.description }}

{% endif %} {% if object.media_type == "Trail" and object.gpx_file %}
{% endif %}

Tags: {% if object.tags.all %} {% for tag in object.tags.all %} {{ tag.name }} {% endfor %} {% else %} untagged {% endif %}

{% with notes_html=object.logdata.notes_as_html %} {% if notes_html %}

Notes

{% if sentiment.compound >= 0.5 %}Positive {% elif sentiment.compound >= 0.05 %}Slightly positive {% elif sentiment.compound > -0.05 %}Neutral {% elif sentiment.compound > -0.5 %}Slightly negative {% else %}Negative {% endif %}
{{ notes_html|safe }}
{% endif %} {% endwith %} {% with sentiment=object.log.sentiment %} {% if sentiment %}
{% endif %} {% endwith %} {% if object.logdata.avg_seconds_per_page %}

Rate: {{object.logdata.avg_seconds_per_page}}s per page

{% endif %} {% if object.media_type == "BoardGame" and object.logdata.as_html %}
Game Details
{{ object.logdata.as_html|safe }}
{% endif %}
{% csrf_token %} {% for field in log_form %}
{{ field|add_class:"form-control" }} {% if field.help_text %}
{{ field.help_text }}
{% endif %} {% for error in field.errors %}
{{ error }}
{% endfor %}
{% endfor %}

All scrobbles of this {{ object.media_type|lower }}

{% if related_scrobbles %}

{{ related_scrobbles.paginator.count }} scrobble{{ related_scrobbles.paginator.count|pluralize }} {% if object.is_long_play and long_play_total_seconds %} | Total time: {{ long_play_total_seconds|natural_duration }} {% if long_play_finished_date %} | Finished: {{ long_play_finished_date|date:"M d, Y" }}{% endif %} {% endif %}

{% for scrobble in related_scrobbles %} {% endfor %}
Date Title Time
{% if scrobble.id == object.id %}{{ scrobble.timestamp|date:"M d, Y" }}{% else %}{{ scrobble.timestamp|date:"M d, Y" }}{% endif %} {% if scrobble.media_type == "Task" and scrobble.logdata.title %}{{ scrobble.media_obj.title }}: {{ scrobble.logdata.title }}{% else %}{{ scrobble.media_obj.title|default:scrobble.media_obj }}{% endif %} {% if scrobble.is_long_play and scrobble.long_play_seconds %} {{ scrobble.playback_position_seconds|natural_duration }} ({{ scrobble.long_play_seconds|natural_duration }} total) {% elif scrobble.playback_position_seconds %} {{ scrobble.playback_position_seconds|natural_duration }} {% endif %}
{% if related_scrobbles.has_other_pages %} {% endif %} {% else %}

No other scrobbles of this media.

{% endif %}
{% endblock %} {% block extra_js %} {{ block.super }} {{ log_form.media }} {% if object.media_type == "Trail" and object.gpx_file %} {% endif %} {% endblock %}