feat: add support for one-off recording schedules with start and end datetime
This commit is contained in:
@@ -18,6 +18,10 @@
|
||||
<span class="px-2 py-0.5 text-xs font-medium rounded-full bg-blue-100 text-blue-700 dark:bg-blue-900/30 dark:text-blue-300">
|
||||
Weekly
|
||||
</span>
|
||||
{% elif item.schedule.schedule_type == 'one_off' %}
|
||||
<span class="px-2 py-0.5 text-xs font-medium rounded-full bg-amber-100 text-amber-700 dark:bg-amber-900/30 dark:text-amber-300">
|
||||
One-Off
|
||||
</span>
|
||||
{% else %}
|
||||
<span class="px-2 py-0.5 text-xs font-medium rounded-full bg-purple-100 text-purple-700 dark:bg-purple-900/30 dark:text-purple-300">
|
||||
24/7 Cycle
|
||||
@@ -69,6 +73,20 @@
|
||||
(with download)
|
||||
{% endif %}
|
||||
</div>
|
||||
{% elif item.schedule.schedule_type == 'one_off' %}
|
||||
<div class="flex items-center gap-2">
|
||||
<svg class="w-4 h-4 text-amber-500 flex-shrink-0" fill="none" stroke="currentColor" viewBox="0 0 24 24">
|
||||
<path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M13 10V3L4 14h7v7l9-11h-7z"/>
|
||||
</svg>
|
||||
{% if item.schedule.start_datetime %}
|
||||
{{ item.schedule.start_datetime|local_datetime }} {{ timezone_abbr() }}
|
||||
→
|
||||
{{ item.schedule.end_datetime|local_datetime }} {{ timezone_abbr() }}
|
||||
{% endif %}
|
||||
{% if item.schedule.include_download %}
|
||||
(with download)
|
||||
{% endif %}
|
||||
</div>
|
||||
{% endif %}
|
||||
|
||||
{% if item.schedule.next_occurrence %}
|
||||
|
||||
Reference in New Issue
Block a user