diff options
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', |