[%- WRAPPER 'artist/layout.tt' title=l('Releases') page='releases' -%] [%- filter_button() -%]

[% l('Releases') %]

[%- INCLUDE 'components/filter.tt' ajax_form_url=c.uri_for_action('/ajax/filter_artist_releases_form', { artist_id => artist.id }) -%] [%- IF releases.size -%]
[%- INCLUDE 'components/releases-list.tt' checkboxes='add-to-merge' WRAPPER 'components/with-pager.tt' -%] [% form_submit(l('Add selected releases for merging')) WRAPPER form_row IF c.user_exists %]
[%- END -%] [% IF va_only && pager.total_entries == 0 %]

[% l('This artist does not have any releases') %]

[% ELSE %] [% IF releases.size == 0 %]

[% l('No releases found') %]

[% END %] [% IF va_only %]

[% l('This artist only has releases by various artists.') %]

[% ELSE %] [% IF !show_va %]

[% l('Showing releases by this artist. {show_all|Show Various Artist releases instead}.', { show_all = c.uri_for_action('/artist/releases', [ artist.gid ], { va = 1 }) }) %]

[% ELSE %]

[% l('Showing Various Artist releases. {show_subset|Show releases by this artist instead}.', { show_subset = c.uri_for_action('/artist/releases', [ artist.gid ], { va = 0 }) }) %]

[% END %] [% END %] [% END %] [%- END -%]