diff options
author | kondou <kondou@ts.unde.re> | 2013-08-31 12:56:36 +0200 |
---|---|---|
committer | kondou <kondou@ts.unde.re> | 2013-08-31 12:56:36 +0200 |
commit | 5d653753bd8f6f1294dfbfa112757e5509ddc80d (patch) | |
tree | 54853c3cf28f4d3ec58d7f9230be68e8e70d4998 /apps/files_sharing/templates/public.php | |
parent | 30526ded803e352f3f7322ed96ebc480d5e3f9c1 (diff) | |
parent | 92e90c8eb995c886b3e9cd77c14e3f0b25b95cd7 (diff) | |
download | nextcloud-server-5d653753bd8f6f1294dfbfa112757e5509ddc80d.tar.gz nextcloud-server-5d653753bd8f6f1294dfbfa112757e5509ddc80d.zip |
Merge branch 'master' into oc_avatars
Diffstat (limited to 'apps/files_sharing/templates/public.php')
-rw-r--r-- | apps/files_sharing/templates/public.php | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/apps/files_sharing/templates/public.php b/apps/files_sharing/templates/public.php index 746a715f3cc..c164b3ea2b7 100644 --- a/apps/files_sharing/templates/public.php +++ b/apps/files_sharing/templates/public.php @@ -79,6 +79,10 @@ <source src="<?php p($_['downloadURL']); ?>" type="<?php p($_['mimetype']); ?>" /> </video> </div> + <?php elseif (\OC\Preview::isMimeSupported($_['mimetype'])): ?> + <div id="imgframe"> + <img src="<?php p(OCP\Util::linkToRoute( 'core_ajax_public_preview', array('x' => 500, 'y' => 500, 'file' => urlencode($_['directory_path']), 't' => $_['dirToken']))); ?>" class="publicpreview"/> + </div> <?php else: ?> <ul id="noPreview"> <li class="error"> |