Exemplo n.º 1
0
 private function getRemoteRepositoryInfoError()
 {
     $date = DateHelper::timeAgoInWords($this->project_creator_status->getEventDate($this->repository), false, true);
     $url = GIT_BASE_URL . '/?action=repo_management&group_id=' . $this->repository->getProjectId() . '&repo_id=' . $this->repository->getId() . '&pane=gerrit';
     $html = '';
     $html .= '<div class="alert alert-error gerrit_url">';
     $html .= $GLOBALS['Language']->getText('plugin_git', 'delegated_to_gerrit_error', array($date, $url), CODENDI_PURIFIER_DISABLED);
     $html .= '</div>';
     return $html;
 }
Exemplo n.º 2
0
 private function getMigratedToGerritError(Git_Driver_Gerrit_ProjectCreatorStatus $status)
 {
     $date = DateHelper::timeAgoInWords($status->getEventDate($this->repository), false, true);
     return '<div class="alert alert-error">' . $GLOBALS['Language']->getText('plugin_git', 'gerrit_server_migration_error', array($date)) . '</div>' . '<pre class="pre-scrollable">' . $status->getLog($this->repository) . '</pre>';
 }