diff options
author | Michael Gapczynski <mtgap@owncloud.com> | 2012-08-29 21:12:10 -0400 |
---|---|---|
committer | Michael Gapczynski <mtgap@owncloud.com> | 2012-08-29 21:12:23 -0400 |
commit | f2534e7428be3b67273a45fc17dd628f0b3d4684 (patch) | |
tree | 9679e6ed47e8ee72fbb95b7ce8b314e1c34b9b0d /apps/files_sharing/templates | |
parent | 756b514fee05bdeb9c7fc06876e498837974bb6c (diff) | |
download | nextcloud-server-f2534e7428be3b67273a45fc17dd628f0b3d4684.tar.gz nextcloud-server-f2534e7428be3b67273a45fc17dd628f0b3d4684.zip |
Show notification that no preview is available if no previewer is found for a public link to a file
Diffstat (limited to 'apps/files_sharing/templates')
-rwxr-xr-x | apps/files_sharing/templates/public.php | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/apps/files_sharing/templates/public.php b/apps/files_sharing/templates/public.php index 36e159dafee..1c08b5b26af 100755 --- a/apps/files_sharing/templates/public.php +++ b/apps/files_sharing/templates/public.php @@ -13,5 +13,11 @@ <?php if (substr($_['mimetype'], 0 , strpos($_['mimetype'], '/')) == 'image'): ?> <img src="<?php echo $_['downloadURL']; ?>" /> <?php endif; ?> + <ul id="noPreview"> + <li class="error"> + <?php echo $l->t('No preview available for').' '.$_['filename']; ?><br /> + <a href="<?php echo $_['downloadURL']; ?>" id="download"><img class="svg" alt="Download" src="<?php echo OCP\image_path("core", "actions/download.svg"); ?>" /><?php echo $l->t('Download')?></a> + </li> + </ul> </div> <footer><p class="info"><a href="http://owncloud.org/">ownCloud</a> – <?php echo $l->t('web services under your control'); ?></p></footer>
\ No newline at end of file |