chore: cleanup

This commit is contained in:
2025-07-13 21:27:54 -05:00
parent accfa9c9bf
commit b42981b2a1
8 changed files with 27 additions and 31 deletions

View File

@@ -1,14 +1,14 @@
{% block media_exists_badge %}
<turbo-stream action="replace" targets="#{{ target }}">
<template>
{% if result.data['exists'] == true %}
{% if result.exists == true %}
<span data-controller="popover">
<template data-popover-target="content">
<div data-popover-target="card"
class="absolute z-40 p-1 bg-stone-400 p-1 text-black rounded-md m-1 animate-fade">
<p class="font-bold text-sm text-left">Existing file(s) for this episode:</p>
<ul class="list-disc ml-3">
<li class="font-normal">{{ result.data['file']['filename']|strip_media_path }} &mdash; <strong>{{ result.data['file']['size']|filesize }}</strong></li>
<li class="font-normal">{{ result.file.filename|strip_media_path }} &mdash; <strong>{{ result.file.size|filesize }}</strong></li>
</ul>
</div>
</template>
@@ -21,7 +21,7 @@
</span>
{% endif %}
{% if result.data['exists'] == false %}
{% if result.exists == false %}
<small class="py-1 px-1.5 mr-1 grow-0 font-bold bg-rose-600 rounded-lg text-white"
title="Episode has not been downloaded yet.">
missing