Skip to content

Commit b50fbaa

Browse files
committed
NEW Add badge of number of deployment server.
1 parent ceafbab commit b50fbaa

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

backoffice/lib/backoffice.lib.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,9 +25,10 @@
2525
/**
2626
* Build tabs for admin page
2727
*
28+
* @param int $nbtotalofrecords Number of deployment servers
2829
* @return array
2930
*/
30-
function sellYourSaasBackofficePrepareHead()
31+
function sellYourSaasBackofficePrepareHead($nbtotalofrecords = 0)
3132
{
3233
global $langs;
3334

@@ -48,6 +49,7 @@ function sellYourSaasBackofficePrepareHead()
4849
$head[$h][0] = '/custom/sellyoursaas/deploymentserver_list.php';
4950
$head[$h][0] = dol_buildpath('/sellyoursaas/deploymentserver_list.php', 1);
5051
$head[$h][1] = $langs->trans("DeploymentServers");
52+
$head[$h][1] .= '<span class="badge marginleftonlyshort">'.$nbtotalofrecords.'</span>';
5153
$head[$h][2] = 'deploymentservers';
5254
$h++;
5355
}

0 commit comments

Comments
 (0)