Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/gallery.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorOlivier Paroz <github@oparoz.com>2015-05-20 20:28:02 +0300
committerOlivier Paroz <github@oparoz.com>2015-06-22 07:21:21 +0300
commit2f83db3d5fb1c20fbbda93ef68661597bd0ee837 (patch)
treea5f52862ad0a875b79a0fcd8ad94e8fede838c1e /templates
parent5f53377c3e9f098e086ee18a699aa1d20294ef71 (diff)
Adds the form which allows a user to add the shared files to his ownCloud
Solution for #144
Diffstat (limited to 'templates')
-rw-r--r--templates/public.php33
1 files changed, 24 insertions, 9 deletions
diff --git a/templates/public.php b/templates/public.php
index 32f59c5f..b3d7516f 100644
--- a/templates/public.php
+++ b/templates/public.php
@@ -53,22 +53,37 @@ style(
<div id="logo-claim" style="display:none;"><?php p($theme->getLogoClaim()); ?></div>
<div class="header-right">
<span id="details">
- <span id="displayName">
- <?php p($l->t('shared by %s', $_['displayName'])); ?>
- </span>
- <a id="download" class="button">
- <img class="svg" src="<?php print_unescaped(
- image_path($_['appName'], "download.svg")
- ); ?>" alt=""/>
+ <?php
+ if ($_['server2ServerSharing']) {
+ ?>
+ <span id="save" data-protected="<?php p($_['protected']) ?>"
+ data-owner="<?php p($_['displayName']) ?>"
+ data-name="<?php p($_['filename']) ?>">
+ <button id="save-button"><?php p(
+ $l->t('Add to your ownCloud')
+ ) ?></button>
+ <form class="save-form hidden" action="#">
+ <input type="text" id="remote_address"
+ placeholder="example.com/owncloud"/>
+ <button id="save-button-confirm"
+ class="icon-confirm svg"></button>
+ </form>
+ </span>
+ <?php } ?>
+ <a id="download" class="button">
+ <img class="svg" src="<?php print_unescaped(
+ image_path($_['appName'], "download.svg")
+ ); ?>" alt=""/>
<span id="download-text"><?php p($l->t('Download')) ?>
</span>
- </a>
+ </a>
</span>
</div>
</div>
</header>
<div class="content-wrapper">
- <div id="content" class="app-<?php p($_['appName']) ?>" data-albumname="<?php p($_['albumName']) ?>">
+ <div id="content" class="app-<?php p($_['appName']) ?>"
+ data-albumname="<?php p($_['albumName']) ?>">
<div id="app">
<div id="controls">
<div id="breadcrumbs"></div>