Lines Matching defs:gitlab
11 require_once __DIR__.'/gitlab/gitlabapi.php';
34 $this->Lexer->addSpecialPattern('<gitlab-api[^>]*/>', $mode, 'plugin_gitlabapi');
139 $gitlab = new GitLabApi($data);
142 $project = $gitlab->getProject();
157 $img_url = DOKU_URL . 'lib/plugins/gitlabapi/images/gitlab.png';
159 $renderer->doc .= '<div class="gitlab">';
160 $renderer->doc .= '<span><img src="'.$img_url.'" class="gitlab"></span>';
161 $renderer->doc .= '<b class="gitlab">'.$this->getLang('gitlab.project').'</b><br>';
162 $renderer->doc .= '<hr class="gitlab">';
163 $renderer->doc .= '<a href="'.$project_url.'" class="gitlab">'.$project_name.'</a>';
165 $renderer->doc .= '<p><b>'.$this->getLang('gitlab.activity').':</b> '.$date_time['date'].' - '.$date_time['time'].'</p>';
168 $this->renderProjectMilestones($renderer, $gitlab, $project_id, $data['milestones']);
171 $this->renderProjectCommits($renderer, $gitlab, $project_id, $data['commits']);
174 $this->renderProjectIssues($renderer, $gitlab, $project_id, $data['issues']);
177 $this->renderProjectPipelines($renderer, $gitlab, $project_id, $data['pipelines']);
183 $gitlab->closeClient();
186 function renderProjectCommits($renderer, $gitlab, $project_id, $number) {
187 $commits = $gitlab->getCommits($project_id);
189 $renderer->doc .= '<b class="gitlab">'.$this->getLang('gitlab.commits').'</b><br>';
215 function renderProjectIssues($renderer, $gitlab, $project_id, $number) {
216 $issues = $gitlab->getIssues($project_id);
218 $renderer->doc .= '<b class="gitlab">'.$this->getLang('gitlab.issues').'</b><br>';
260 function renderProjectMilestones($renderer, $gitlab, $project_id, $number) {
261 $milestones = $gitlab->getMilestones($project_id);
263 $renderer->doc .= '<b class="gitlab">'.$this->getLang('gitlab.milestones').'</b><br>';
290 function renderProjectPipelines($renderer, $gitlab, $project_id, $number) {
291 $pipelines = $gitlab->getPipelines($project_id);
293 $renderer->doc .= '<b class="gitlab">'.$this->getLang('gitlab.pipelines').'</b><br>';
320 $img_url = DOKU_URL . 'lib/plugins/gitlabapi/images/gitlab.png';
322 $renderer->doc .= '<div class="gitlab">';
323 $renderer->doc .= '<span><img src="'.$img_url.'" class="gitlab"></span>';
324 $renderer->doc .= '<b class="gitlab">'.$this->getLang('gitlab.project').'</b><br>';
325 $renderer->doc .= '<hr class="gitlab">';
326 $renderer->doc .= '<p>'.$this->getLang('gitlab.error').'</p>';