diff options
author | Christoph Wurst <christoph@winzerhof-wurst.at> | 2016-10-10 11:14:51 +0200 |
---|---|---|
committer | Roeland Jago Douma <roeland@famdouma.nl> | 2016-11-07 14:58:45 +0100 |
commit | 5bf7e5533d79c98d720d92ecee0125938805ff0f (patch) | |
tree | f8b9fc3fffa74f5ce858fd8184ed79663a6cd4d7 /apps | |
parent | 9e5e120ef9869b7c52d90e85782ec83a9217275d (diff) | |
download | nextcloud-server-5bf7e5533d79c98d720d92ecee0125938805ff0f.tar.gz nextcloud-server-5bf7e5533d79c98d720d92ecee0125938805ff0f.zip |
visually reflect sharing state of current folder
Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
Diffstat (limited to 'apps')
-rw-r--r-- | apps/files_sharing/appinfo/app.php | 1 | ||||
-rw-r--r-- | apps/files_sharing/css/sharebreadcrumb.css | 33 | ||||
-rw-r--r-- | apps/files_sharing/js/sharebreadcrumbview.js | 6 |
3 files changed, 35 insertions, 5 deletions
diff --git a/apps/files_sharing/appinfo/app.php b/apps/files_sharing/appinfo/app.php index 06f4a41ac14..850c2c05977 100644 --- a/apps/files_sharing/appinfo/app.php +++ b/apps/files_sharing/appinfo/app.php @@ -44,6 +44,7 @@ $eventDispatcher->addListener( \OCP\Util::addScript('files_sharing', 'sharetabview'); \OCP\Util::addScript('files_sharing', 'sharebreadcrumbview'); \OCP\Util::addStyle('files_sharing', 'sharetabview'); + \OCP\Util::addStyle('files_sharing', 'sharebreadcrumb'); } ); diff --git a/apps/files_sharing/css/sharebreadcrumb.css b/apps/files_sharing/css/sharebreadcrumb.css new file mode 100644 index 00000000000..054c6bd66bf --- /dev/null +++ b/apps/files_sharing/css/sharebreadcrumb.css @@ -0,0 +1,33 @@ +/** + * @copyright 2016 Christoph Wurst <christoph@winzerhof-wurst.at> + * + * @author 2016 Christoph Wurst <christoph@winzerhof-wurst.at> + * + * @license GNU AGPL version 3 or any later version + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU Affero General Public License as + * published by the Free Software Foundation, either version 3 of the + * License, or (at your option) any later version. + * + * This program 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 program. If not, see <http://www.gnu.org/licenses/>. + * + */ + +div.crumb span.icon-share { + display: inline-block; + width: 32px; + vertical-align: sub; + cursor: pointer; + opacity: 0.2; +} + +div.crumb span.icon-share.shared { + opacity: 0.7; +} diff --git a/apps/files_sharing/js/sharebreadcrumbview.js b/apps/files_sharing/js/sharebreadcrumbview.js index 7e659768304..9803c8f6dea 100644 --- a/apps/files_sharing/js/sharebreadcrumbview.js +++ b/apps/files_sharing/js/sharebreadcrumbview.js @@ -25,11 +25,7 @@ (function() { 'use strict'; - var TEMPLATE = '{{#if isShared}}' - + 'Shared!' - + '{{else}}' - + 'Not shared!' - + '{{/if}}'; + var TEMPLATE = '<span class="icon icon-share {{#if isShared}}shared{{/if}}"></span>'; var BreadCrumbView = OC.Backbone.View.extend({ tagName: 'span', |