1a85c7a6 |
1 | <pre class="thread_tree"> |
dce7d862 |
2 | {$spool->buildTree($artid)|smarty:nodefaults} |
3 | </pre> |
4 | |
7027794f |
5 | <table class="bicol message"> |
6 | <tr> |
7 | <th colspan="3" class="subject"> |
8 | {if !$noactions} |
9 | <div class="menu"> |
10 | {if $spool->nextUnread($artid)} |
a0b2e16c |
11 | {imglink group=$group artid=$spool->nextUnread($artid) img=next_unread alt="Message non-lu suivant"|b accesskey=u}{/if} |
7027794f |
12 | {if $spool->prevPost($artid)} |
a0b2e16c |
13 | {imglink group=$group artid=$spool->prevPost($artid) img=prev alt="Message précédent"|b accesskey=a}{/if} |
7027794f |
14 | {if $spool->nextPost($artid)} |
a0b2e16c |
15 | {imglink group=$group artid=$spool->nextPost($artid) img=next alt="Message suivant"|b accesskey=z}{/if} |
7027794f |
16 | {if $spool->prevThread($artid)} |
a0b2e16c |
17 | {imglink group=$group artid=$spool->prevThread($artid) img=prev_thread alt="Discussion précédente"|b accesskey=q}{/if} |
7027794f |
18 | {if $spool->nextThread($artid)} |
a0b2e16c |
19 | {imglink group=$group artid=$spool->nextThread($artid) img=next_thread alt="Discussion suivante"|b accesskey=s}{/if} |
7027794f |
20 | </div> |
21 | <div class="action"> |
22 | {if $message->canSend()} |
a0b2e16c |
23 | {imglink group=$group action="new" img=post alt="Nouveau message"|b accesskey=p} |
24 | {imglink group=$group artid=$artid action="new" img=reply alt="Répondre"|b accesskey=r} |
7027794f |
25 | {/if} |
26 | {if $message->canCancel()} |
a0b2e16c |
27 | {imglink group=$group artid=$artid action="cancel" img=cancel alt="Annuler"|b accesskey=c} |
7027794f |
28 | {/if} |
29 | </div> |
30 | {/if} |
4f7c063d |
31 | {$message->translateHeaderValue('subject')|smarty:nodefaults} |
7027794f |
32 | </th> |
33 | </tr> |
34 | {foreach from=$headers name=headers item=hdr} |
35 | <tr class="pair"> |
36 | <td class="hdr">{$message->translateHeaderName($hdr)}</td> |
4f7c063d |
37 | <td>{$message->translateHeaderValue($hdr)|smarty:nodefaults}</td> |
7027794f |
38 | {if $smarty.foreach.headers.first} |
39 | <td class="xface" rowspan="{$headers|@count}"> |
40 | {if $message->hasXFace()} |
27934b36 |
41 | <img src="{url group=$group artid=$artid part="xface"}" style="width: 48px" alt="[ X-Face ]" /> |
7027794f |
42 | {/if} |
43 | </td> |
44 | {/if} |
45 | </tr> |
46 | {/foreach} |
47 | {assign var=files value=$message->getAttachments()} |
48 | {if $files|@count} |
49 | <tr class="pair"> |
a3c90095 |
50 | <td class="hdr">{"Fichiers joints"|b}</td> |
7027794f |
51 | <td colspan="2"> |
52 | {foreach from=$files item=file name=attachs} |
a0b2e16c |
53 | {imglink img=save alt="Enregistrer"|b group=$group artid=$artid part=$file->getFilename() text=$file->getFilename()}{if !$smarty.foreach.attachs.last}, {/if} |
7027794f |
54 | {/foreach} |
55 | </td> |
56 | </tr> |
57 | {/if} |
a3c90095 |
58 | {assign var=signature value=$message->getSignature()} |
1d57a0f1 |
59 | {if $signature && $signature.key.id} |
a3c90095 |
60 | <tr class="pair"> |
61 | <td class="hdr">{"Signature"|b}</td> |
62 | <td colspan="2"> |
63 | {if $signature.verify && $signature.certified} |
64 | {img img=accept alt="Signature valide par une clé de confiance"|b} |
65 | {elseif $signature.verify} |
66 | {img img=error alt="Signature valide par une clé non vérifiée"|b} |
67 | {else} |
68 | {img img=exclamation alt="Signature non valide"|b} |
69 | {/if} |
70 | <strong> |
71 | {if $signature.verify}<span class="ok">{"Valide"|b}...</span> |
72 | {else}<span class="erreur">{"Non valide"|b}...</span>{/if} |
73 | </strong> |
74 | {"Message signé par la clé"|b} {$signature.key.format}:{$signature.key.id} |
75 | {if $signature.certified} |
76 | (<span class="ok">{"identité vérifiée"|b}</span>) |
77 | {else} |
78 | (<span class="erreur">{"non vérifiée"|b}</span> : {$signature.certification_error}) |
79 | {/if} |
80 | </td> |
81 | </tr> |
82 | {/if} |
a9defc17 |
83 | {assign var=alter value=$message->getAlternatives()} |
84 | {if $alter|@count} |
85 | <tr class="pair"> |
86 | <td class="hdr">{"Versions"|b}</td> |
87 | <td colspan="2"> |
88 | {foreach from=$alter key=ctype item=text name=alter} |
e67c2c1c |
89 | {if $type eq $ctype} |
90 | {$text} |
91 | {if $extimages}[{link group=$group artid=$artid part=$type action=showext text="Afficher les images externes"|b}]{/if} |
92 | {else} |
93 | {link group=$group artid=$artid part=$ctype text=$text} |
94 | {/if} |
a9defc17 |
95 | {if !$smarty.foreach.alter.last} • {/if} |
96 | {/foreach} |
97 | </td> |
98 | </tr> |
99 | {/if} |
7027794f |
100 | <tr> |
101 | <td colspan="3" class="body"> |
4f7c063d |
102 | {$body|banana_utf8entities|smarty:nodefaults} |
7027794f |
103 | </td> |
104 | </tr> |
105 | </table> |
106 | |
598a1c53 |
107 | {* vim:set et sw=2 sts=2 ts=2 enc=utf-8: *} |