[% FOR torrent = data.list.list %] [% SET class = []; IF loop.index % 2; class.push('odd'); ELSE; class.push('even'); END; IF data.current == torrent.hash; class.push('selected'); END; UNLESS torrent.is_active; class.push('inactive'); END; %] [% SET class = ['rate', 'digit'] %] [% IF torrent.ratio >= 1.0; class.push('positive'); ELSE; class.push('negative'); END %] [% END %]
[% gettext('Name') %] [% gettext('Priority') %] [% gettext('Size') %] [% gettext('Done') %] [% gettext('Status') %] [% gettext('Peers') %] [% gettext('Down Speed') %] [% gettext('Up Speed') %] [% gettext('Rate') %]
[% IF torrent.hashing %]
[% ELSIF torrent.complete %] [% IF torrent.is_active %]
[% ELSE %]
[% END %] [% ELSE %] [% IF torrent.is_active %]
[% ELSE %]
[% END %] [% END %]
[% torrent.name %] [% gettext(torrent.priority_str) %] [% torrent.size_bytes.as_human_size %] [% torrent.size_bytes %] [% torrent.percent %]
[% IF torrent.hashing; gettext('Hashing'); ELSIF torrent.complete; IF torrent.is_active; gettext('Seeding'); ELSE; gettext('Finished'); END; ELSE; IF torrent.is_active; gettext('Downloading'); ELSE; gettext('Paused'); END; END; %] [% torrent.peers_connected %] [% torrent.down_rate.as_human_speed %] [% torrent.down_rate %] [% torrent.up_rate.as_human_speed %] [% torrent.up_rate %] [% torrent.ratio %]