|
|
@ -30,7 +30,7 @@ blocksController.getBlocks = async function (req, res, next) {
|
|
|
|
userData.users = await user.getUsers(data.uids, req.uid);
|
|
|
|
userData.users = await user.getUsers(data.uids, req.uid);
|
|
|
|
userData.title = '[[pages:account/blocks, ' + userData.username + ']]';
|
|
|
|
userData.title = '[[pages:account/blocks, ' + userData.username + ']]';
|
|
|
|
|
|
|
|
|
|
|
|
const pageCount = Math.ceil(userData.blocksCount / resultsPerPage);
|
|
|
|
const pageCount = Math.ceil(userData.counts.blocks / resultsPerPage);
|
|
|
|
userData.pagination = pagination.create(page, pageCount);
|
|
|
|
userData.pagination = pagination.create(page, pageCount);
|
|
|
|
|
|
|
|
|
|
|
|
userData.breadcrumbs = helpers.buildBreadcrumbs([{ text: userData.username, url: '/user/' + userData.userslug }, { text: '[[user:blocks]]' }]);
|
|
|
|
userData.breadcrumbs = helpers.buildBreadcrumbs([{ text: userData.username, url: '/user/' + userData.userslug }, { text: '[[user:blocks]]' }]);
|
|
|
|