Revision 860c8bbe
Von Tamino Steinert vor etwa 1 Jahr hinzugefügt
SL/Controller/EmailJournal.pm | ||
---|---|---|
87 | 87 |
back_to => $back_to); |
88 | 88 |
} |
89 | 89 |
|
90 |
sub action_show_attachment { |
|
91 |
my ($self) = @_; |
|
92 |
|
|
93 |
$::auth->assert('email_journal'); |
|
94 |
|
|
95 |
my $attachment_id = $::form->{attachment_id}; |
|
96 |
my $attachment = SL::DB::EmailJournalAttachment->new(id => $attachment_id)->load; |
|
97 |
|
|
98 |
return $self->send_file( |
|
99 |
\$attachment->content, |
|
100 |
name => $attachment->name, |
|
101 |
type => $attachment->mime_type, |
|
102 |
content_disposition => 'inline', |
|
103 |
); |
|
104 |
} |
|
105 |
|
|
90 | 106 |
sub action_download_attachment { |
91 | 107 |
my ($self) = @_; |
92 | 108 |
|
... | ... | |
164 | 180 |
->replaceWith('#attachment_preview', |
165 | 181 |
SL::Presenter::EmailJournal::attachment_preview( |
166 | 182 |
$attachment, |
167 |
style => "width:655px;border:1px solid black;margin:9px"
|
|
183 |
style => "height:1800px"
|
|
168 | 184 |
) |
169 | 185 |
) |
170 | 186 |
->render(); |
Auch abrufbar als: Unified diff
EmailJournal: Anhangsvorschau mit kopierbaren Text