/usr/share/rtpg-www/templates/default/prop.tt.html is in rtpg-www 0.2.11-3.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 | <div class="inlays">
[% # Menu
SET menu = [
{ name => 'info', description => gettext('Info') },
{ name => 'peers', description => gettext('Peers') },
{ name => 'files', description => gettext('Files') },
{ name => 'trackers', description => gettext('Trackers') },
#{ name => 'chunks', description => gettext('Chunks') },
#{ name => 'transfer', description => gettext('Transfer') },
];
%]
[% FOR item = menu %]
[%
SET class = ['item', item.name];
IF data.prop == item.name; class.push('selected'); END;
%]
<div id="[% item.name %]" class="[% class.join(' ') %]" >
[% item.description %]
</div>
[% END %]
[% IF data.prop == 'files' %]
<div class="priority">
<input type="button" class="inlays priority off"
title="[% gettext('Skip selected files') %]"/>
<input type="button" class="inlays priority normal"
title="[% gettext('Set normal priority for selected files') %]"/>
<input type="button" class="inlays priority high"
title="[% gettext('Set high priority for selected files') %]"/>
</div>
[% END %]
</div>
[% UNLESS data.current && data.info %]
<div class="message">
[% UNLESS data.current %]
<br/>
<br/>
[% gettext('Select torrent to show') %]
[% END %]
</div>
[% ELSE %]
<div class="properties [% data.prop %]">
[% SWITCH data.prop;
CASE 'info'; INCLUDE 'prop.info.tt.html';
CASE 'peers'; INCLUDE 'prop.peers.tt.html';
CASE 'files'; INCLUDE 'prop.files.tt.html';
CASE 'trackers'; INCLUDE 'prop.trackers.tt.html';
CASE 'chunks'; INCLUDE 'prop.chunks.tt.html';
CASE 'transfer'; INCLUDE 'prop.transfer.tt.html';
CASE DEFAULT; gettext('Unknown property page');
END %]
</div>
[% END %]
|