tangled
alpha
login
or
join now
cherry.computer
/
website
My personal site
cherry.computer
htmx
tailwind
axum
askama
0
fork
atom
overview
issues
pulls
pipelines
fix: tidy up whitespace in templates
cherry.computer
1 year ago
a04492e3
e5c93f20
verified
This commit was signed with the committer's
known signature
.
cherry.computer
SSH Key Fingerprint:
SHA256:SIA77Ll0IpMb8Xd3RtaGT+PBIGIePhJJg5W2r6Td7cc=
+13
-13
2 changed files
expand all
collapse all
unified
split
server
templates
index.html
scrobble.html
+3
-3
server/templates/index.html
···
96
96
"load, every 30s"
97
97
{%- endif -%}
98
98
>
99
99
-
{% match scrobble %} {% when Some with (ScrobblesTemplate {intro, now_playing, image, srcset}) %}
99
99
+
{%- match scrobble %} {%- when Some with (ScrobblesTemplate {intro, now_playing, image, srcset}) %}
100
100
{% include "scrobble.html" %}
101
101
-
{% else %}
102
102
-
{% endmatch %}
101
101
+
{%- else %}
102
102
+
{%- endmatch %}
103
103
</div>
104
104
</body>
105
105
</html>
+10
-10
server/templates/scrobble.html
···
1
1
<div class="bar-container">
2
2
-
{% match image %} {% when Some with (image) %}
2
2
+
{%- match image %} {%- when Some with (image) %}
3
3
<img
4
4
-
class="bar-cover"
5
5
-
src="{{ image }}"
6
6
-
alt="Cover art"
7
7
-
{% match srcset %} {% when Some with (srcset) %}
8
8
-
srcset="{{ srcset }}"
9
9
-
{% else %}
10
10
-
{% endmatch %}
4
4
+
class="bar-cover"
5
5
+
src="{{ image }}"
6
6
+
alt="Cover art"
7
7
+
{%- match srcset %} {%- when Some with (srcset) %}
8
8
+
srcset="{{ srcset }}"
9
9
+
{%- else %}
10
10
+
{%- endmatch %}
11
11
/>
12
12
-
{% else %}
13
13
-
{% endmatch %}
12
12
+
{%- else %}
13
13
+
{%- endmatch %}
14
14
<p class="bar-text-intro">{{ intro }}</p>
15
15
<p class="bar-text-music">{{ now_playing }}</p>
16
16
</div>