X-Git-Url: http://git.polytechnique.org/?a=blobdiff_plain;f=banana%2Ftemplates%2Fbanana-message.inc.tpl;h=6fe2479dda9478b6d2ab2e122697a8f546498d68;hb=edff14de60605e402071bd12a924f18063d82562;hp=2924c6c6c4a366bcf5f0e9789c46e455ac6a9612;hpb=a0b2e16cb505dbc1f6705d2d2033056089fad01c;p=banana.git diff --git a/banana/templates/banana-message.inc.tpl b/banana/templates/banana-message.inc.tpl index 2924c6c..6fe2479 100644 --- a/banana/templates/banana-message.inc.tpl +++ b/banana/templates/banana-message.inc.tpl @@ -51,6 +51,23 @@ {/if} + {assign var=alter value=$message->getAlternatives()} + {if $alter|@count} + + {"Versions"|b} + + {foreach from=$alter key=ctype item=text name=alter} + {if $type eq $ctype} + {$text} + {if $extimages}[{link group=$group artid=$artid part=$type action=showext text="Afficher les images externes"|b}]{/if} + {else} + {link group=$group artid=$artid part=$ctype text=$text} + {/if} + {if !$smarty.foreach.alter.last} • {/if} + {/foreach} + + + {/if} {$body}