Revision 43f06a01
Von Tamino Steinert vor mehr als 1 Jahr hinzugefügt
| SL/Presenter/EmailJournal.pm | ||
|---|---|---|
|
sub attachment_preview {
|
||
|
my ($attachment, %params) = @_;
|
||
|
|
||
|
if (! $attachment) {
|
||
|
return is_escaped(html_tag('div', '', id => 'attachment_preview'));
|
||
|
}
|
||
|
|
||
|
# clean up mime_type
|
||
|
my $mime_type = $attachment->mime_type;
|
||
|
$mime_type =~ s/;.*//;
|
||
Auch abrufbar als: Unified diff
EmailJournal: Zeige Vorschau von Anhängen an