1<!-- view_template.tt2 -->
2
3<h2>[%|loc%]Template edition system[%END%]</h2>
4<br />
5<p>
6    <ul>
7        <li>
8            [%|loc%]Template name: [%END%] <strong> [% template_name %] </strong>
9        </li>
10        <li>
11            [%|loc%]Type: [%END%]
12            <strong>
13                [% SWITCH webormail -%]
14                    [% CASE 'web' %][%|loc%]web[%END -%]
15                    [% CASE 'mail' %][%|loc%]mail[%END -%]
16                    [% CASE %][% webormail -%]
17                [%END%]
18            </strong>
19        </li>
20        <li>
21            [%|loc%]Path: [%END%]<strong> [% template_path %] </strong>
22        </li>
23        <li>
24            [%|loc%]Scope: [%END%]
25            [%- SWITCH scope -%]
26                [% CASE 'distrib' %]
27                    <strong> [%|loc%]default[%END%] </strong>
28                    [%|loc%](this template is the default included in the distribution)[%END%]
29                [% CASE 'site' %]
30                    <strong> [%|loc%]site[%END%] </strong>
31                    [%|loc%](this template is the default used by all robots unless redefined for a specific robot)[%END%]
32                [% CASE 'robot' %]
33                    <strong> [%|loc%]robot[%END%] </strong>
34                    [%|loc(robot)%](this template is the default for all lists of robot %1 unless it is redefined for a specific list)[%END%]
35                [% CASE 'list' %]
36                    <strong> [%|loc%]list[%END -%] </strong>
37                    [%|loc(list,robot)%](this template is defined for list %1@%2)[%END%]
38                [% CASE %]
39                    <strong> [% scope %] </strong>
40                [% END %]
41        </li>
42        <li>
43            [%|loc%]Language: [%END%]
44            [%- IF tpl_lang == 'default' -%]
45                <strong> [%|loc%]default[%END%] </strong>
46                [%|loc%](This template is the default for all languages unless it is redefined for a specific language)[%END%]
47            [%- ELSE -%]
48                <strong class="neutral" lang="[%tpl_lang_lang%]" xml:lang="[%tpl_lang_lang%]">
49                [%~ tpl_lang | optdesc('lang',1) ~%]
50                </strong>
51            [%- END %]
52        </li>
53    </ul>
54</p>
55<br />
56<div class="block">
57    <pre>
58        [% template_content %]
59    </pre>
60</div>
61<!-- end view_template.tt2 -->
62