// TODO: hook earlier and render the whole row here
var $tr = OCA.Files.FileList.prototype._createRow.apply(this, arguments);
$tr.find('.filesize').remove();
- var $sharedWith = $('<td class="sharedWith"></td>')
- .text(fileData.counterParts.join(', '));
- $tr.find('td.date').before($sharedWith);
+ $tr.find('td.date').before($tr.children('td:first'));
$tr.find('td.filename input:checkbox').remove();
$tr.attr('data-share-id', _.pluck(fileData.shares, 'id').join(','));
if (this._sharedWithUser) {
<a class="name sort columntitle" data-sort="name"><span><?php p($l->t( 'Name' )); ?></span><span class="sort-indicator"></span></a>
</div>
</th>
- <th id="headerSharedWith" class="hidden column-counterpart">
- <a id="sharedwith" class="columntitle" data-sort="shareWith"><span><?php p($l->t( 'Shared with' )); ?></span><span class="sort-indicator"></span></a>
- </th>
<th id="headerDate" class="hidden column-mtime">
<a id="modified" class="columntitle" data-sort="mtime"><span><?php p($l->t( 'Share time' )); ?></span><span class="sort-indicator"></span></a>
</th>
'/index.php/apps/files/ajax/download.php' +
'?dir=%2Flocal%20path&files=local%20name.txt'
);
- expect($tr.find('td.sharedWith').text()).toEqual('User Two');
-
expect($tr.find('.nametext').text().trim()).toEqual('local name.txt');
});
it('render folder shares', function() {
'/index.php/apps/files' +
'?dir=/local%20path/local%20name'
);
- expect($tr.find('td.sharedWith').text()).toEqual('User Two');
-
expect($tr.find('.nametext').text().trim()).toEqual('local name');
});
});
'/index.php/apps/files/ajax/download.php' +
'?dir=%2Flocal%20path&files=local%20name.txt'
);
- expect($tr.find('td.sharedWith').text()).toEqual('User Two');
-
expect($tr.find('.nametext').text().trim()).toEqual('local name.txt');
});
it('render folder shares', function() {
'/index.php/apps/files' +
'?dir=/local%20path/local%20name'
);
- expect($tr.find('td.sharedWith').text()).toEqual('User Two');
-
expect($tr.find('.nametext').text().trim()).toEqual('local name');
});
it('render link shares', function() {
OC.webroot +
'/index.php/apps/files/ajax/download.php' +
'?dir=%2Flocal%20path&files=local%20name.txt');
- expect($tr.find('td.sharedWith').text()).toEqual('link');
expect($tr.find('.nametext').text().trim()).toEqual('local name.txt');
});
'/index.php/apps/files/ajax/download.php' +
'?dir=%2Flocal%20path&files=local%20name.txt'
);
- expect($tr.find('td.sharedWith').text()).toEqual('link, User Three, User Two');
-
expect($tr.find('.nametext').text().trim()).toEqual('local name.txt');
});
});