$class = $cursor['type']; if (isset($cursor['info']['new']) && isset($cursor['info']['new']['state'])) { if (in_array($cursor['info']['new']['state'], $this->blocking_states)) { $class = 'issue_closed } else { $class = 'issue_created } } elseif ($cursor['type'] == 'task_rev') { if ($cursor['info']['state'] != $cursor['info']['old']['state']) { if ($cursor['info']['state'] != 0) { $class = 'task_closed } else { $class = 'task } } } $elms): ?>

time2date(strtotime("-$day days")) ?>

# () # ()
wiki_parse($elm['description']) ?>
$aid = explode(':', $id); switch($cursor['type']) { case 'comment': case 'change': case 'task': break; case 'comment_rev': case 'task_rev': if ($aid[2] == -1) { } else { } break; case 'issue_created': break; case 'change': break; default: break; } echo date('H:i', $cursor['date']); switch($cursor['type']) { case 'comment': case 'task': if ($cursor['type'] == 'task') { echo $this->getLang('task_added'); } else { echo $this->getLang('comment_added'); } #'.$aid[0].':'.$aid[1]; ( echo $cursor['title']; ) if ($cursor['type'] == 'task') { echo $this->getLang('task_for'); echo $this->string_format_field('name', $cursor['info']['executor']); } echo $this->getLang('by'); echo $this->string_format_field('name', $cursor['author']);
echo $this->wiki_parse($cursor['info']['content']);
break; case 'change': case 'change_state': $state = $cursor['info']['new']['state']; if (isset($state)) { $diff = array('opinion'); if (in_array($state, $this->blocking_states)) { echo $this->getLang('issue_closed'); } else { echo $this->getLang('issue_reopened'); } } else { $diff = array(); echo $this->getLang('change_made'); } #'.$aid[0].':'.$aid[1]; ( echo $cursor['title']; ) echo $this->getLang('by'); echo $this->string_format_field('name', $cursor['author']);
echo $this->html_format_change($cursor['info']['new'], $cursor['info']['prev'], $diff); if (isset($cursor['info']['new']['state'])) { echo $this->wiki_parse($cursor['info']['new']['opinion']); }
break; case 'comment_rev': case 'task_rev': if ($cursor['type'] == 'task_rev') { if ($cursor['info']['state'] != $cursor['info']['old']['state']) { if ($cursor['info']['state'] == 0) { echo $this->getLang('task_reopened'); } else if ($cursor['info']['state'] == 1) { echo $this->getLang('task_closed'); } else if ($cursor['info']['state'] == 2) { echo $this->getLang('task_rejected'); } } else { echo $this->getLang('task_changed'); } } else { echo $this->getLang('comment_changed'); } #'.$aid[0].':'.$aid[1]; ( echo $cursor['title']; ) echo lcfirst($this->getLang('version')); echo $cursor['info']['rev_len'] - $aid[2]; echo $this->getLang('by'); echo $this->string_format_field('name', $cursor['author']);
if ($cursor['type'] == 'task_rev' && isset($cursor['info']['old'])) { //remoev unchanged field $new = array(); foreach ($cursor['info']['old'] as $k => $v) { if (isset($cursor['info'][$k])) { $new[$k] = $cursor['info'][$k]; } } echo $this->html_format_change($new, $cursor['info']['old'], array('reason'), 'task'); echo $this->wiki_parse($cursor['info']['reason']); } else { echo $this->wiki_parse($cursor['info']['content']); }
break; case 'issue_created': echo $this->getLang('issue_created'); #'.$aid[0]; ( echo $cursor['title']; ) echo $this->getLang('by'); echo $this->string_format_field('name', $cursor['author']);
echo $this->wiki_parse($cursor['info']['description']);
break; case 'change': break; default: break; } }