[%- WRAPPER 'cdstub/layout.tt' page='index' -%] [% IF cdstubtoc.cdstub.comment %]

[% l('Comment') %]

[% cdstubtoc.cdstub.comment %]

[% END %]

[% l('Tracklist') %]

[% INCLUDE 'cdstub/cdstub.tt' %]

[% l('Disc ID information') %]

[%- l('{doc|Disc ID}:', { doc => doc_link('Disc_ID') }) -%] [% cdstubtoc.discid %]
[%- l('Total tracks:') -%] [% cdstubtoc.track_count %]
[%- l('Total length:') -%] [% total = 0 %] [% FOREACH i IN cdstubtoc.cdstub.tracks; total = total + i.length; END %] [% total | format_length %]
[%- l('Full TOC:') -%] 1 [% cdstubtoc.track_count %] [% cdstubtoc.leadout_offset %] [% cdstubtoc.track_offset.join(' ') %]
[%- END -%]