/**
  * @param CampaignItem $campaignItem
  * @return string
  */
 protected static function renderMetricsContent(CampaignItem $campaignItem)
 {
     if (!ActionSecurityUtil::canCurrentUserPerformAction('Details', $campaignItem->emailMessage)) {
         return static::renderRestrictedEmailMessageAccessLink($campaignItem->emailMessage);
     }
     $isQueued = $campaignItem->isQueued();
     $isSkipped = $campaignItem->isSkipped();
     if ($isQueued) {
         $content = static::getQueuedContent();
     } elseif ($isSkipped) {
         $content = static::getSkippedContent();
     } elseif ($campaignItem->hasFailedToSend()) {
         $content = static::getSendFailedContent();
     } elseif ($campaignItem->isSent()) {
         $content = static::getSentContent();
         if ($campaignItem->hasAtLeastOneOpenActivity()) {
             $content .= static::getOpenedContent();
         }
         if ($campaignItem->hasAtLeastOneClickActivity()) {
             $content .= static::getClickedContent();
         }
         if ($campaignItem->hasAtLeastOneUnsubscribeActivity()) {
             $content .= static::getUnsubscribedContent();
         }
         if ($campaignItem->hasAtLeastOneBounceActivity()) {
             $content .= static::getBouncedContent();
         }
     } else {
         $content = static::getAwaitingQueueingContent();
     }
     return ZurmoHtml::wrapAndRenderContinuumButtonContent($content);
 }