show note on public link page
Signed-off-by: Bjoern Schiessle <bjoern@schiessle.org>
This commit is contained in:
parent
73b88deeb8
commit
4f59c8e8ae
|
@ -169,3 +169,8 @@ thead {
|
||||||
opacity: .57;
|
opacity: .57;
|
||||||
margin-top: 10px;
|
margin-top: 10px;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#note {
|
||||||
|
text-align: center;
|
||||||
|
padding: 10px;
|
||||||
|
}
|
||||||
|
|
|
@ -262,6 +262,7 @@ class ShareController extends AuthPublicShareController {
|
||||||
$shareTmpl['owner'] = $share->getShareOwner();
|
$shareTmpl['owner'] = $share->getShareOwner();
|
||||||
$shareTmpl['filename'] = $share->getNode()->getName();
|
$shareTmpl['filename'] = $share->getNode()->getName();
|
||||||
$shareTmpl['directory_path'] = $share->getTarget();
|
$shareTmpl['directory_path'] = $share->getTarget();
|
||||||
|
$shareTmpl['note'] = $share->getNote();
|
||||||
$shareTmpl['mimetype'] = $share->getNode()->getMimetype();
|
$shareTmpl['mimetype'] = $share->getNode()->getMimetype();
|
||||||
$shareTmpl['previewSupported'] = $this->previewManager->isMimeSupported($share->getNode()->getMimetype());
|
$shareTmpl['previewSupported'] = $this->previewManager->isMimeSupported($share->getNode()->getMimetype());
|
||||||
$shareTmpl['dirToken'] = $this->getToken();
|
$shareTmpl['dirToken'] = $this->getToken();
|
||||||
|
|
|
@ -31,6 +31,11 @@ $maxUploadFilesize = min($upload_max_filesize, $post_max_size);
|
||||||
<input type="hidden" name="maxSizeAnimateGif" value="<?php p($_['maxSizeAnimateGif']); ?>" id="maxSizeAnimateGif">
|
<input type="hidden" name="maxSizeAnimateGif" value="<?php p($_['maxSizeAnimateGif']); ?>" id="maxSizeAnimateGif">
|
||||||
<?php if (!isset($_['hideFileList']) || (isset($_['hideFileList']) && $_['hideFileList'] === false)) { ?>
|
<?php if (!isset($_['hideFileList']) || (isset($_['hideFileList']) && $_['hideFileList'] === false)) { ?>
|
||||||
<div id="files-public-content">
|
<div id="files-public-content">
|
||||||
|
<?php if (isset($_['note']) && $_['note'] !== '') : ?>
|
||||||
|
<div id="note">
|
||||||
|
<?php p($l->t('Note: ')); p($_['note']); ?>
|
||||||
|
</div>
|
||||||
|
<?php endif; ?>
|
||||||
<div id="preview">
|
<div id="preview">
|
||||||
<?php if (isset($_['folder'])): ?>
|
<?php if (isset($_['folder'])): ?>
|
||||||
<?php print_unescaped($_['folder']); ?>
|
<?php print_unescaped($_['folder']); ?>
|
||||||
|
|
Loading…
Reference in New Issue