source: trunk/LATMOS-Accounts-Web/root/html/includes/defs.tt @ 1865

Last change on this file since 1865 was 1546, checked in by nanardon, 9 years ago

Add I18N support

File size: 1.2 KB
Line 
1[% MACRO l(text, args) BLOCK;
2    c.localize(text, args);
3END; %]
4
5[% perm_denied = BLOCK %]
6<span class="permdenied"><img src="[% c.uri_for('/static', 'images', 'process-stop.png') %]">
7    permission non accordé
8</span>
9[% END %]
10
11[% BLOCK user_flag %]
12[% INCLUDE object_flag object = ouser %]
13[% END %]
14
15[% BLOCK object_flag %]
16[% IF object.type == 'user' %]
17    [% IF object.get_attributes('unexported') %]
18<img src="[% c.uri_for('/static', 'images', 'gtk-delete.png') %]"
19class="notice" title="Ce compte est désactivé" alt="disable">
20    [% ELSIF object.get_attributes('expired') %]
21<img src="[% c.uri_for('/static', 'images', 'emblem-urgent.png') %]"
22class="notice" title="Ce compte est expiré ([% object.get_attributes('expired') %])" alt="expired">
23    [% ELSIF object.get_attributes('expire') %]
24<img src="[% c.uri_for('/static', 'images', 'appointment-new.png') %]"
25class="notice" title="Ce compte est temporaire ([% object.get_attributes('expire') %])" alt="temporary">
26    [% END %]
27[% ELSE %]
28    [% IF object.get_attributes('unexported') %]
29<img src="[% c.uri_for('/static', 'images', 'gtk-delete.png') %]"
30class="notice" title="Cette entrée est désactivés" alt="disable">
31    [% END %]
32[% END %]
33[% END %]
34
Note: See TracBrowser for help on using the repository browser.