commit
1e6160adce
@ -1,55 +0,0 @@
|
||||
<?php
|
||||
|
||||
/**
|
||||
* ownCloud - Documents App
|
||||
*
|
||||
* @author Frank Karlitschek
|
||||
* @copyright 2013-2014 Frank Karlitschek karlitschek@kde.org
|
||||
*
|
||||
* This library is free software; you can redistribute it and/or
|
||||
* modify it under the terms of the GNU AFFERO GENERAL PUBLIC LICENSE
|
||||
* License as published by the Free Software Foundation; either
|
||||
* version 3 of the License, or any later version.
|
||||
*
|
||||
* This library is distributed in the hope that it will be useful,
|
||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
* GNU AFFERO GENERAL PUBLIC LICENSE for more details.
|
||||
*
|
||||
* You should have received a copy of the GNU Affero General Public
|
||||
* License along with this library. If not, see <http://www.gnu.org/licenses/>.
|
||||
*
|
||||
*/
|
||||
|
||||
|
||||
namespace OCA\Documents;
|
||||
|
||||
\OCP\User::checkLoggedIn();
|
||||
\OCP\JSON::checkAppEnabled('documents');
|
||||
\OCP\App::setActiveNavigationEntry( 'documents_index' );
|
||||
|
||||
\OCP\Util::addStyle( 'documents', 'style' );
|
||||
\OCP\Util::addStyle( 'documents', '3rdparty/webodf/dojo-app' );
|
||||
|
||||
\OCP\Util::addScript('documents', 'documents');
|
||||
|
||||
\OCP\Util::addScript('files', 'file-upload');
|
||||
\OCP\Util::addScript('files', 'jquery.iframe-transport');
|
||||
\OCP\Util::addScript('files', 'jquery.fileupload');
|
||||
|
||||
|
||||
$tmpl = new \OCP\Template('documents', 'documents', 'user');
|
||||
|
||||
$previewsEnabled = \OC::$server->getConfig()->getSystemValue('enable_previews', true);
|
||||
$unstable = \OCP\Config::getAppValue('documents', 'unstable', 'false');
|
||||
$maxUploadFilesize = \OCP\Util::maxUploadFilesize("/");
|
||||
$savePath = \OCP\Config::getUserValue(\OCP\User::getUser(), 'documents', 'save_path', '/');
|
||||
|
||||
$tmpl->assign('enable_previews', $previewsEnabled);
|
||||
$tmpl->assign('useUnstable', $unstable);
|
||||
$tmpl->assign('uploadMaxFilesize', $maxUploadFilesize);
|
||||
$tmpl->assign('uploadMaxHumanFilesize', \OCP\Util::humanFileSize($maxUploadFilesize));
|
||||
$tmpl->assign('savePath', $savePath);
|
||||
$tmpl->assign("allowShareWithLink", \OC::$server->getAppConfig()->getValue('core', 'shareapi_allow_links', 'yes'));
|
||||
|
||||
$tmpl->printPage();
|
@ -1,7 +1,10 @@
|
||||
<?php
|
||||
script('documents', 'personal');
|
||||
?>
|
||||
<div class="section" id="documents-personal">
|
||||
<h2><?php p($l->t('Documents')); ?></h2>
|
||||
<div>
|
||||
<label for="documents-default-path"><?php p($l->t('Save new documents to')) ?></label>
|
||||
<input type="text" id="documents-default-path" value="<?php p($_['savePath']) ?>" /><span class="msg"></span>
|
||||
<input type="text" id="documents-default-path" value="<?php p($_['save_path']) ?>" /><span class="msg"></span>
|
||||
</div>
|
||||
</div>
|
||||
|
Loading…
Reference in New Issue