summaryrefslogtreecommitdiffstats
path: root/apps/files_sharing/templates
diff options
context:
space:
mode:
authorMichael Gapczynski <mtgap@owncloud.com>2012-08-29 21:12:10 -0400
committerMichael Gapczynski <mtgap@owncloud.com>2012-08-29 21:12:23 -0400
commitf2534e7428be3b67273a45fc17dd628f0b3d4684 (patch)
tree9679e6ed47e8ee72fbb95b7ce8b314e1c34b9b0d /apps/files_sharing/templates
parent756b514fee05bdeb9c7fc06876e498837974bb6c (diff)
downloadnextcloud-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-xapps/files_sharing/templates/public.php6
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> &ndash; <?php echo $l->t('web services under your control'); ?></p></footer> \ No newline at end of file