Lexer->addSpecialPattern('
'.$this->getLang('description').'
' . $projDesc . '
Description : '.$foundVersion['description'].'
'; $renderer->doc .= ''; $renderer->doc .= ''.$this->getLang('createdon').''.$createdOn->format(DateTime::RFC850).'
'; $renderer->doc .= ''.$this->getLang('updatedon').''.$updatedOn->format(DateTime::RFC850).'
'; // Issues of Versions $issueTotal = $client->api('issue')->all(array( 'project_id' => $projId, 'status_id' => '*', 'fixed_version_id' => $foundVersion['id'], 'limit' => 1 )); // Total issues & open $issueOpen = $client->api('issue')->all(array( 'project_id' => $projId, 'status_id' => 'open', 'fixed_version_id' => $foundVersion['id'], 'limit' => 1 )); // Get percent version $diffIssue = $issueTotal['total_count'] - $issueOpen['total_count']; $progress = $this->getPercent($diffIssue,$issueTotal['total_count']); // renderer Progressbar $renderer->doc .= ''; $renderer->doc .= ''.$issueTotal['total_count'].' issues ('.$diffIssue.' closed - '.$issueOpen['total_count'].' open)'; $renderer->doc .= ''; // /.col-md-3 $renderer->doc .= ''; $renderer->doc .= '' . $this->getLang('noversion') . '
'.$this->getLang('mainproj').'
'; } else { $renderer->doc .= ''.$this->getLang('subproject').' '.$nameParent.'
'; } $renderer->doc .= ''.$this->getLang('tversion').''.$nbVersion.''.$this->getLang('vversion').'
'; $renderer->doc .= ''. $issueTotal['total_count'].''.$this->getLang('issues').''.$issueOpen['total_count'].''.$this->getLang('open').'
'; $renderer->doc .= ''.$m.''.$this->getLang('membdetail').'
'; $renderer->doc .= ''.$currentRole['name'].' : '; // Define a total to render commas $total = count($currentRole['members']); foreach($currentRole['members'] as $who => $currentUser) { $userId = $currentUser['id']; $mailCurrentUser = $client->api('user')->show($userId); $mailUser = $mailCurrentUser['user']['mail']; $renderer->doc .= ' '. $currentUser['name'] . '' ; if ($who < $total - 1) { $renderer->doc .= ','; } } $renderer->doc .= '
'; } $renderer->doc .= '