Can choose to show external images
[banana.git] / banana / templates / banana-message.inc.tpl
CommitLineData
ab02e8a9 1<table class="bicol message">
2 <tr>
3 <th colspan="3" class="subject">
4 {if !$noactions}
5 <div class="menu">
6 {if $spool->nextUnread($artid)}
75b4a888 7 {imglink group=$group artid=$spool->nextUnread($artid) img=next_unread alt="Message non-lu suivant"|b accesskey=u}{/if}
ab02e8a9 8 {if $spool->prevPost($artid)}
75b4a888 9 {imglink group=$group artid=$spool->prevPost($artid) img=prev alt="Message précédent"|b accesskey=a}{/if}
ab02e8a9 10 {if $spool->nextPost($artid)}
75b4a888 11 {imglink group=$group artid=$spool->nextPost($artid) img=next alt="Message suivant"|b accesskey=z}{/if}
ab02e8a9 12 {if $spool->prevThread($artid)}
75b4a888 13 {imglink group=$group artid=$spool->prevThread($artid) img=prev_thread alt="Discussion précédente"|b accesskey=q}{/if}
ab02e8a9 14 {if $spool->nextThread($artid)}
75b4a888 15 {imglink group=$group artid=$spool->nextThread($artid) img=next_thread alt="Discussion suivante"|b accesskey=s}{/if}
ab02e8a9 16 </div>
17 <div class="action">
18 {if $message->canSend()}
75b4a888 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}
ab02e8a9 21 {/if}
22 {if $message->canCancel()}
75b4a888 23 {imglink group=$group artid=$artid action="cancel" img=cancel alt="Annuler"|b accesskey=c}
ab02e8a9 24 {/if}
25 </div>
26 {/if}
27 {$message->translateHeaderValue('subject')}
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)}</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"}" 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</td>
47 <td colspan="2">
48 {foreach from=$files item=file name=attachs}
75b4a888 49 {imglink img=save alt="Enregistrer"|b group=$group artid=$artid part=$file->getFilename() text=$file->getFilename()}{if !$smarty.foreach.attachs.last}, {/if}
ab02e8a9 50 {/foreach}
51 </td>
52 </tr>
53 {/if}
1273e8f4 54 {assign var=alter value=$message->getAlternatives()}
55 {if $alter|@count}
56 <tr class="pair">
57 <td class="hdr">{"Versions"|b}</td>
58 <td colspan="2">
59 {foreach from=$alter key=ctype item=text name=alter}
18f6babf 60 {if $type eq $ctype}
61 {$text}
62 {if $extimages}[{link group=$group artid=$artid part=$type action=showext text="Afficher les images externes"|b}]{/if}
63 {else}
64 {link group=$group artid=$artid part=$ctype text=$text}
65 {/if}
1273e8f4 66 {if !$smarty.foreach.alter.last}&nbsp;&bull;&nbsp;{/if}
67 {/foreach}
68 </td>
69 </tr>
70 {/if}
ab02e8a9 71 <tr>
72 <td colspan="3" class="body">
9bc195d6 73 {$body}
ab02e8a9 74 </td>
75 </tr>
76</table>
77
d8d416c4 78{* vim:set et sw=2 sts=2 ts=2 enc=utf-8: *}