diff options
author | Thomas Müller <thomas.mueller@tmit.eu> | 2014-01-23 20:15:10 +0100 |
---|---|---|
committer | Thomas Müller <thomas.mueller@tmit.eu> | 2014-01-23 20:15:10 +0100 |
commit | 617aa3cf29955a23eed2ececc8e1876d77002223 (patch) | |
tree | cc56d5efd90d39a6d12b2387a55d3e548b546cdc /apps/files_sharing/templates/public.php | |
parent | 799e744ad77c3f8ae7aac63125a3af17880bb9d5 (diff) | |
download | nextcloud-server-617aa3cf29955a23eed2ececc8e1876d77002223.tar.gz nextcloud-server-617aa3cf29955a23eed2ececc8e1876d77002223.zip |
Instead of 'No preview available for ...' we simple display the mieme-type icon
Diffstat (limited to 'apps/files_sharing/templates/public.php')
-rw-r--r-- | apps/files_sharing/templates/public.php | 20 |
1 files changed, 8 insertions, 12 deletions
diff --git a/apps/files_sharing/templates/public.php b/apps/files_sharing/templates/public.php index f8a31005cdf..652cd74eaff 100644 --- a/apps/files_sharing/templates/public.php +++ b/apps/files_sharing/templates/public.php @@ -32,16 +32,10 @@ <source src="<?php p($_['downloadURL']); ?>" type="<?php p($_['mimetype']); ?>" /> </video> </div> - <?php elseif (\OC\Preview::isMimeSupported($_['mimetype'])): ?> + <?php else: ?> <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"> - <?php p($l->t('No preview available for').' '.$_['filename']); ?><br /> - </li> - </ul> <?php endif; ?> <div class="directDownload"> <a href="<?php p($_['downloadURL']); ?>" id="download" class="button"> @@ -55,8 +49,10 @@ </div> <?php endif; ?> </div> - <footer> - <p class="info"> - <?php print_unescaped($theme->getLongFooter()); ?> - </p> - </footer> + +</div> +<footer> + <p class="info"> + <?php print_unescaped($theme->getLongFooter()); ?> + </p> +</footer> |