Lines Matching defs:renderer

22      *  -) render($mode, Doku_Renderer $renderer, $data)
112 function render($mode, Doku_Renderer $renderer, $data) {
117 $renderer->doc .= $data['text'];
121 $renderer->info['cache'] = false;
124 $this->renderGitLab($renderer, $data);
130 $renderer->doc .= $renderer->_xmlEntities($data['text']);
137 function renderGitLab($renderer, $data) {
146 $this->renderProjectError($renderer, $data);
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>';
164 $renderer->doc .= ' - <b>Namespace:</b> <a href="'.$data['server'].'/'.$namespace.'"> '.$namespace.'</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']);
180 $renderer->doc .= '</p>';
181 $renderer->doc .= '</div>';
186 function renderProjectCommits($renderer, $gitlab, $project_id, $number) {
189 $renderer->doc .= '<b class="gitlab">'.$this->getLang('gitlab.commits').'</b><br>';
190 $renderer->doc .= '<table border="1">
204 $renderer->doc .= '<tr>';
205 $renderer->doc .= '<td>'.$commits[$i]['committer_name'].'</td>';
206 $renderer->doc .= '<td>'.$commits[$i]['title'].'</td>';
207 $renderer->doc .= '<td>'.$commits[$i]['message'].'</td>';
208 $renderer->doc .= '<td>'.$commits[$i]['committed_date'].'</td>';
209 $renderer->doc .= '<td><a href='.$commits[$i]['web_url'].'>Commit link</a></td>';
210 $renderer->doc .= '</tr>';
212 $renderer->doc .= '</tbody></table>';
215 function renderProjectIssues($renderer, $gitlab, $project_id, $number) {
218 $renderer->doc .= '<b class="gitlab">'.$this->getLang('gitlab.issues').'</b><br>';
219 $renderer->doc .= '<table border="1">
237 $renderer->doc .= '<tr>';
238 $renderer->doc .= '<td>'.$issues[$i]['author']['name'].'</td>';
239 $renderer->doc .= '<td>'.$issues[$i]['title'].'</td>';
245 $renderer->doc .= '<td>'.rtrim($l_list,', ').'</td>';
251 $renderer->doc .= '<td>'.rtrim($a_list, ', ').'</td>';
252 $renderer->doc .= '<td>'.$issues[$i]['state'].'</td>';
253 $renderer->doc .= '<td><a href='.$issues[$i]['web_url'].'>Issue link</a></td>';
254 $renderer->doc .= '</tr>';
256 $renderer->doc .= '</tbody></table>';
260 function renderProjectMilestones($renderer, $gitlab, $project_id, $number) {
263 $renderer->doc .= '<b class="gitlab">'.$this->getLang('gitlab.milestones').'</b><br>';
264 $renderer->doc .= '<table border="1">
278 $renderer->doc .= '<tr>';
279 $renderer->doc .= '<td>'.$milestones[$i]['title'].'</td>';
280 $renderer->doc .= '<td>'.$milestones[$i]['description'].'</td>';
281 $renderer->doc .= '<td>'.$milestones[$i]['state'].'</td>';
282 $renderer->doc .= '<td>'.$milestones[$i]['created_at'].'</td>';
283 $renderer->doc .= '<td><a href='.$milestones[$i]['web_url'].'>Milestone link</a></td>';
284 $renderer->doc .= '</tr>';
287 $renderer->doc .= '</tbody></table>';
290 function renderProjectPipelines($renderer, $gitlab, $project_id, $number) {
293 $renderer->doc .= '<b class="gitlab">'.$this->getLang('gitlab.pipelines').'</b><br>';
294 $renderer->doc .= '<table border="1">
307 $renderer->doc .= '<tr>';
308 $renderer->doc .= '<td>'.$pipelines[$i]['ref'].'</td>';
309 $renderer->doc .= '<td>'.$pipelines[$i]['status'].'</td>';
310 $renderer->doc .= '<td>'.$pipelines[$i]['source'].'</td>';
311 $renderer->doc .= '<td><a href='.$pipelines[$i]['web_url'].'>Pipeline link</a></td>';
312 $renderer->doc .= '</tr>';
315 $renderer->doc .= '</tbody></table>';
319 function renderProjectError($renderer, $data) {
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>';
327 $renderer->doc .= '</div>';