|
|
@@ -81,12 +81,13 @@ $isUserCurrentGrantedAsProducer = $userModule->getAuthorizationChecker()->isGran |
|
|
|
} |
|
|
|
|
|
|
|
$countTicketsLabel = ''; |
|
|
|
$countTicketsAdminOpen = $ticketModule->getRepository()->countTicketsAdminStatusOpen(); |
|
|
|
$countTicketsAdminUnread = $ticketModule->getRepository()->countTicketsAdminUnreadByUser($this->getUserCurrent()); |
|
|
|
|
|
|
|
if ($countTicketsAdminUnread && $isUserCurrentGrantedAsAdministrator) { |
|
|
|
$countTicketsLabel = '<span class="pull-right-container"><small class="label pull-right bg-green">' . $countTicketsAdminUnread . '</small></span>'; |
|
|
|
$countTicketsLabel = '<span class="pull-right-container"><small class="label pull-right bg-green">' . $countTicketsAdminOpen . '</small></span>'; |
|
|
|
} else { |
|
|
|
$countTicketsAdminOpen = $ticketModule->getRepository()->countTicketsAdminStatusOpen(); |
|
|
|
if ($countTicketsAdminOpen) { |
|
|
|
if($countTicketsAdminOpen) { |
|
|
|
$countTicketsLabel = '<span class="pull-right-container"><small class="label pull-right bg-blue">' . $countTicketsAdminOpen . '</small></span>'; |
|
|
|
} |
|
|
|
} |
|
|
@@ -95,7 +96,6 @@ $isUserCurrentGrantedAsProducer = $userModule->getAuthorizationChecker()->isGran |
|
|
|
$sumUserProducerCreditsLabel = ''; |
|
|
|
//$sumUserProducerCreditsLabel = '<span class="pull-right-container"><small class="label pull-right '.($sumUserProducerCredits >= 0 ? 'bg-green' : 'bg-red') .'">'.number_format($sumUserProducerCredits, 2).' €</small></span>'; |
|
|
|
|
|
|
|
|
|
|
|
$countUsersWithStatusProducerOnline = $userModule->getRepository()->countUsersStatusProducerOnline(); |
|
|
|
$countUsersWithStatusUserOnline = $userModule->getRepository()->countUsersStatusUserOnline(); |
|
|
|
$countUsersProducersOnlineLabel = ''; |