summaryrefslogtreecommitdiffstats
path: root/apps/files_sharing/templates
diff options
context:
space:
mode:
authorMichael Gapczynski <mtgap@owncloud.com>2012-08-27 15:46:05 -0400
committerMichael Gapczynski <mtgap@owncloud.com>2012-08-27 20:37:38 -0400
commit0a9d1ed3a645efda56ae757f45aa7efb5a35ce4f (patch)
treea2fbdc55f42a149c8a5e738763ce731e9c55f6dc /apps/files_sharing/templates
parent8374a49cc19cf43489a415388fd782ba1574ee82 (diff)
downloadnextcloud-server-0a9d1ed3a645efda56ae757f45aa7efb5a35ce4f.tar.gz
nextcloud-server-0a9d1ed3a645efda56ae757f45aa7efb5a35ce4f.zip
Initial previewer for public links
Diffstat (limited to 'apps/files_sharing/templates')
-rw-r--r--apps/files_sharing/templates/authenticate.php9
-rwxr-xr-xapps/files_sharing/templates/get.php11
-rwxr-xr-xapps/files_sharing/templates/public.php13
3 files changed, 22 insertions, 11 deletions
diff --git a/apps/files_sharing/templates/authenticate.php b/apps/files_sharing/templates/authenticate.php
new file mode 100644
index 00000000000..41064d51464
--- /dev/null
+++ b/apps/files_sharing/templates/authenticate.php
@@ -0,0 +1,9 @@
+<form action="index.php" method="post">
+ <fieldset>
+ <p>
+ <label for="password" class="infield"><?php echo $l->t('Password'); ?></label>
+ <input type="password" name="password" id="password" value="" />
+ <input type="submit" value="<?php echo $l->t('Submit'); ?>" />
+ </p>
+ </fieldset>
+</form> \ No newline at end of file
diff --git a/apps/files_sharing/templates/get.php b/apps/files_sharing/templates/get.php
deleted file mode 100755
index 57275f07a3d..00000000000
--- a/apps/files_sharing/templates/get.php
+++ /dev/null
@@ -1,11 +0,0 @@
-<table>
- <thead>
- <tr>
- <th id="headerSize"><?php echo $l->t( 'Size' ); ?></th>
- <th id="headerDate"><span id="modified"><?php echo $l->t( 'Modified' ); ?></span><span class="selectedActions"><a href="" class="delete"><?php echo $l->t('Delete all')?> <img class="svg" alt="<?php echo $l->t('Delete')?>" src="<?php echo OCP\image_path("core", "actions/delete.svg"); ?>" /></a></span></th>
- </tr>
- </thead>
- <tbody id="fileList" data-readonly="<?php echo $_['readonly'];?>">
- <?php echo($_['fileList']); ?>
- </tbody>
-</table> \ No newline at end of file
diff --git a/apps/files_sharing/templates/public.php b/apps/files_sharing/templates/public.php
new file mode 100755
index 00000000000..065818c2200
--- /dev/null
+++ b/apps/files_sharing/templates/public.php
@@ -0,0 +1,13 @@
+<input type="hidden" name="dir" value="<?php echo $_['dir'] ?>" id="dir">
+<input type="hidden" name="downloadURL" value="<?php echo $_['downloadURL'] ?>" id="downloadURL">
+<input type="hidden" name="filename" value="<?php echo $_['filename'] ?>" id="filename">
+<input type="hidden" name="mimetype" value="<?php echo $_['mimetype'] ?>" id="mimetype">
+<div id="preview">
+ <p><?php echo $_['owner']; ?> shared the file <?php echo $_['name'] ?> with you</p>
+</div>
+<div id="content">
+ <?php if (substr($_['mimetype'], 0 , strpos($_['mimetype'], '/')) == 'image'): ?>
+ <img src="<?php echo $_['downloadURL']; ?>" />
+ <?php endif; ?>
+</div>
+<a href="<?php echo $_['downloadURL']; ?>">Download</a> \ No newline at end of file