Skip to content

Commit

Permalink
display nb items
Browse files Browse the repository at this point in the history
  • Loading branch information
aynsix committed Jun 5, 2024
1 parent 81194f7 commit f85eb50
Show file tree
Hide file tree
Showing 5 changed files with 9 additions and 1 deletion.
2 changes: 2 additions & 0 deletions Phraseanet-production-client/dist/production.js
Original file line number Diff line number Diff line change
Expand Up @@ -11155,6 +11155,8 @@ var workzone = function workzone(services) {
if ('error' in data) {
(0, _jquery2.default)('.publication-list').empty().html(data.error);
}

(0, _jquery2.default)('#expose_workzone .nb_item').text(data.nbItems);
},
error: function error(data) {
if (data.status === 403 && data.getResponseHeader('x-phraseanet-end-session')) {
Expand Down
2 changes: 2 additions & 0 deletions Phraseanet-production-client/dist/production.min.js
Original file line number Diff line number Diff line change
Expand Up @@ -11155,6 +11155,8 @@ var workzone = function workzone(services) {
if ('error' in data) {
(0, _jquery2.default)('.publication-list').empty().html(data.error);
}

(0, _jquery2.default)('#expose_workzone .nb_item').text(data.nbItems);
},
error: function error(data) {
if (data.status === 403 && data.getResponseHeader('x-phraseanet-end-session')) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1215,6 +1215,8 @@ const workzone = (services) => {
if ('error' in data) {
$('.publication-list').empty().html(data.error);
}

$('#expose_workzone .nb_item').text(data.nbItems);
},
error: function (data) {
if (data.status === 403 && data.getResponseHeader('x-phraseanet-end-session')) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -346,7 +346,8 @@ public function listPublicationAction(PhraseaApplication $app, Request $request)
'exposeLogin' => $session->get($this->getLoginSessionName($exposeName)),
'basePath' => $basePath,
'previousPage' => $previousPage,
'nextPage' => $nextPage
'nextPage' => $nextPage,
'nbItems' => count($publications) . ' / ' . $totalItems
]);
}

Expand Down
1 change: 1 addition & 0 deletions templates/web/prod/WorkZone/Macros.html.twig
Original file line number Diff line number Diff line change
Expand Up @@ -725,6 +725,7 @@
<a class="publication-pagination previous-publication" style="cursor:pointer;color:#4990e2;">&#60; {{ 'prod:expose previous' | trans}}</a>
<span class="publication-page" style="margin-left: 20px; color:#4990e2;">1</span>
<a class="publication-pagination next-publication" style="margin-left: 20px;cursor:pointer;color:#4990e2;"> {{ 'prod:expose next' | trans}} &#62;</a>
<span class="nb_item pull-right" style="margin-bottom: 10px; margin-right: 10px;"></span>
</div>
</div>

Expand Down

0 comments on commit f85eb50

Please sign in to comment.