public function display() { $html = ''; $html .= '<div id="plugin_git_reference" class="plugin_git_repo_type_' . $this->repository->getBackendType() . '">'; $html .= $this->getHeader(); if ($this->repository->isMigratedToGerrit()) { $html .= $this->getRemoteRepositoryInfo(); } $html .= $this->getCloneUrl(); $html .= '</div>'; $html .= $this->getOnlineEditDiv(); if ($this->repository->isCreated()) { $html .= $this->gitphp_viewer->getContent(); } else { $html .= $this->getWaitingForRepositoryCreationInfo(); } $html .= '</div>'; echo $html; }
private function displayContent() { $html = ''; if ($this->repository->isCreated()) { $html .= $this->gitphp_viewer->getContent(); } else { $html .= $this->getWaitingForRepositoryCreationInfo(); } if ($this->isATreePage()) { $html .= $this->getMarkdownFilesDiv(); } echo $html; }