blob: 52c633f082e2305b8a9d5e6ca67af2f2dfdb4123 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
|
{% extends "base.html" %}
{% block title %}{{ shelf_meta.title }} · Lumière{% endblock %}
{% block content %}
<section class="page-heading">
<p class="eyebrow">{{ shelf_meta.eyebrow }}</p>
<div class="page-heading-row">
<h1>{{ shelf_meta.title }}</h1>
{% if active_shelf == 'queue' %}
<a class="button-link" href="/queue/random">Surprise me</a>
{% endif %}
</div>
</section>
{% if imported is not none %}
<div class="notice">{{ imported }} entries imported.</div>
{% endif %}
{% if skipped is not none and skipped %}
<div class="notice">{{ skipped }} duplicate entries skipped.</div>
{% endif %}
{% if cleared is not none %}
<div class="notice">{{ cleared }} entries cleared.</div>
{% endif %}
{% if deduped is not none %}
<div class="notice">{{ deduped }} duplicate entries removed.</div>
{% endif %}
{% if empty_queue is not none %}
<div class="notice">The queue is empty. Add a film to get a random pick.</div>
{% endif %}
{% if enriched is not none %}
<div class="notice">{{ enriched }} entries enriched from TMDB.</div>
{% endif %}
{% if films %}
<section class="diary-feed" aria-label="Diary entries">
{% if active_shelf == 'diary' and grouped_films %}
{% for group in grouped_films %}
<div class="month-group">
<p class="month-label">{{ group.month }}</p>
{% for film in group.films %}
{% include "_film_card.html" %}
{% endfor %}
</div>
{% endfor %}
{% else %}
{% for film in films %}
{% include "_film_card.html" %}
{% endfor %}
{% endif %}
</section>
{% else %}
<section class="empty-state">
<h2>{{ shelf_meta.empty_title }}</h2>
<p>{{ shelf_meta.empty_text }}</p>
<a class="button-link" href="/films/new">Add Film</a>
</section>
{% endif %}
{% endblock %}
|