mirror of
https://github.com/beetbox/beets.git
synced 2026-01-01 05:23:05 +01:00
Avoid rendering extraneous separators
handling cases where the artist or album data might be missing to avoid rendering extraneous separators. Suggested by Copilot.
This commit is contained in:
parent
8ea7346575
commit
54e76368d0
1 changed files with 5 additions and 1 deletions
|
|
@ -39,7 +39,11 @@
|
|||
<div id="extra-detail"></div>
|
||||
<!-- Templates. -->
|
||||
<script type="text/template" id="item-entry-template">
|
||||
<%= artist %> – <%= album %> – <%= title %>
|
||||
<% if (artist) { %><%= artist %><% } %>
|
||||
<% if (artist && album) { %> – <% } %>
|
||||
<% if (album) { %><%= album %><% } %>
|
||||
<% if ((artist || album) && title) { %> – <% } %>
|
||||
<%= title %>
|
||||
<span class="playing">▶</span>
|
||||
</script>
|
||||
<script type="text/template" id="item-main-detail-template">
|
||||
|
|
|
|||
Loading…
Reference in a new issue