{{define "release"}}
<div class="release">
    <div class="release-artwork">
        <img src="{{.GetArtwork}}" alt="" width="128" loading="lazy">
    </div>
    <div class="release-info">
        <h3 class="release-title">
            <a href="/admin/release/{{.ID}}">{{.Title}}</a>
            <small>
                <span title="{{.PrintReleaseDate}}">{{.ReleaseDate.Year}}</span>
                {{if not .Visible}}(hidden){{end}}
            </small>
        </h3>
        <p class="release-artists">{{.PrintArtists true true}}</p>
        <p class="release-type-single">{{.ReleaseType}}
        (<a href="/admin/release/{{.ID}}#tracks">{{len .Tracks}} track{{if not (eq (len .Tracks) 1)}}s{{end}}</a>)</p>
        <div class="release-actions">
            <a href="/admin/release/{{.ID}}">Edit</a>
            <a href="/music/{{.ID}}" target="_blank">Gateway <img class="icon" src="/img/external-link.svg"/></a>
        </div>
    </div>
</div>
{{end}}
