diff options
author | Vincent Petry <pvince81@owncloud.com> | 2014-05-20 12:00:42 +0200 |
---|---|---|
committer | Vincent Petry <pvince81@owncloud.com> | 2014-05-30 10:06:29 +0200 |
commit | fa32243d84e1801c379a5e8956ba2f3de236c718 (patch) | |
tree | abc4d1bbb457bf40daeaf220aabd5386786fea36 /apps/files_sharing | |
parent | 06e53b359ac806b9103cb617e7a6bad8cbadb519 (diff) | |
download | nextcloud-server-fa32243d84e1801c379a5e8956ba2f3de236c718.tar.gz nextcloud-server-fa32243d84e1801c379a5e8956ba2f3de236c718.zip |
Small fixes to sharing overview
- Removed file size from file summary in sharing overview
- Fixed document title
- Fixed empty content text for shared overview
Diffstat (limited to 'apps/files_sharing')
-rw-r--r-- | apps/files_sharing/js/app.js | 11 | ||||
-rw-r--r-- | apps/files_sharing/templates/list.php | 2 |
2 files changed, 12 insertions, 1 deletions
diff --git a/apps/files_sharing/js/app.js b/apps/files_sharing/js/app.js index 9808e069784..57551237a34 100644 --- a/apps/files_sharing/js/app.js +++ b/apps/files_sharing/js/app.js @@ -28,6 +28,9 @@ OCA.Sharing.App = { ); this._initFileActions(this._inFileList); + this._extendFileList(this._inFileList); + this._inFileList.appName = t('files_sharing', 'Shared with you'); + this._inFileList.$el.find('#emptycontent').text(t('files_sharing', 'No files have been shared with you yet.')); }, initSharingOut: function($el) { @@ -43,6 +46,9 @@ OCA.Sharing.App = { ); this._initFileActions(this._outFileList); + this._extendFileList(this._outFileList); + this._outFileList.appName = t('files_sharing', 'Shared with others'); + this._outFileList.$el.find('#emptycontent').text(t('files_sharing', 'You haven\'t shared any files yet.')); }, _initFileActions: function(fileList) { @@ -54,6 +60,11 @@ OCA.Sharing.App = { OCA.Files.App.fileList.changeDirectory(context.$file.attr('data-path') + '/' + filename, true, true); }); fileList.setFileActions(fileActions); + }, + + _extendFileList: function(fileList) { + // remove size column from summary + fileList.fileSummary.$el.find('.filesize').remove(); } }; diff --git a/apps/files_sharing/templates/list.php b/apps/files_sharing/templates/list.php index 6671e674089..c688dcf8764 100644 --- a/apps/files_sharing/templates/list.php +++ b/apps/files_sharing/templates/list.php @@ -4,7 +4,7 @@ </div> <div id='notification'></div> -<div id="emptycontent" class="hidden"><?php p($l->t('Nothing in here.'))?></div> +<div id="emptycontent" class="hidden"></div> <input type="hidden" name="dir" value="" id="dir"> |