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