50 lines
1.8 KiB
Plaintext
50 lines
1.8 KiB
Plaintext
<% if (createAt) { %>
|
|
<p class="media-meta"><strong>Created at</strong>: <%= createAt %></p>
|
|
<% } %>
|
|
|
|
<% if (typeof artists !== 'undefined' && artists && artists.length) { %>
|
|
<div class="slight-border">
|
|
<h5>Artists</h5>
|
|
<% artists.forEach(artist => { %>
|
|
<div class="artist">
|
|
<span class="artist-name"><%= artist.name %></span>
|
|
<% if (artist.urls.length > 0) { %>
|
|
<div class="artist-links">
|
|
<% artist.urls.forEach(url => { %>
|
|
<a href="<%= url %>" target="_blank" rel="noopener noreferrer" class="underline chip-link">
|
|
<%= url %>
|
|
</a>
|
|
<% }) %>
|
|
</div>
|
|
<% } %>
|
|
</div>
|
|
<% }) %>
|
|
</div>
|
|
<% } %>
|
|
|
|
<% if (typeof sources !== 'undefined' && sources && sources.length > 0) { %>
|
|
<div class="slight-border">
|
|
<h5>Sources</h5>
|
|
<div class="sources">
|
|
<% sources.forEach(source => { %>
|
|
<a href="<%= source %>" target="_blank" rel="noopener noreferrer" class="underline chip-link">
|
|
<%= source %>
|
|
</a>
|
|
<% }) %>
|
|
</div>
|
|
</div>
|
|
<% } %>
|
|
|
|
<% if (typeof tags !== 'undefined' && tags && tags.length > 0) { %>
|
|
<div class="slight-border">
|
|
<h5>Tags</h5>
|
|
<div class="tags">
|
|
<% tags.forEach(tag => { %>
|
|
<a href="<%= tagSearchBase %>?search=<%= tag %>&mode=tags<%= typeof accessCode !== 'undefined' && accessCode?.code ? `&access_code=${accessCode.code}` : '' %>" rel="noopener noreferrer" class="underline chip-tag">
|
|
<%= tag %>
|
|
</a>
|
|
<% }) %>
|
|
</div>
|
|
</div>
|
|
<% } %>
|