Ejemplo n.º 1
0
     echo '<i>' . __('Resolution changed: %text', array('%text' => $log_action['text'])) . '</i>';
     break;
 case \thebuggenie\core\entities\tables\Log::LOG_ISSUE_PERCENT:
     echo '<i>' . __('Percent completed: %text', array('%text' => $log_action['text'])) . '</i>';
     break;
 case \thebuggenie\core\entities\tables\Log::LOG_ISSUE_MILESTONE:
     echo '<i>' . __('Target milestone changed: %text', array('%text' => $log_action['text'])) . '</i>';
     break;
 case \thebuggenie\core\entities\tables\Log::LOG_ISSUE_ISSUETYPE:
     echo '<i>' . __('Issue type changed: %text', array('%text' => $log_action['text'])) . '</i>';
     break;
 case \thebuggenie\core\entities\tables\Log::LOG_ISSUE_TIME_ESTIMATED:
     echo '<i>' . __('Estimation changed: %text', array('%text' => \thebuggenie\core\entities\common\Timeable::formatTimeableLog($log_action['text'], $log_action['previous_value'], $log_action['current_value'], true, true))) . '</i>';
     break;
 case \thebuggenie\core\entities\tables\Log::LOG_ISSUE_TIME_SPENT:
     echo '<i>' . __('Time spent: %text', array('%text' => \thebuggenie\core\entities\common\Timeable::formatTimeableLog($log_action['text'], $log_action['previous_value'], $log_action['current_value'], true, true))) . '</i>';
     break;
 case \thebuggenie\core\entities\tables\Log::LOG_ISSUE_ASSIGNED:
     echo '<i>' . __('Assignee changed: %text', array('%text' => $log_action['text'])) . '</i>';
     break;
 case \thebuggenie\core\entities\tables\Log::LOG_ISSUE_OWNED:
     echo '<i>' . __('Owner changed: %text', array('%text' => $log_action['text'])) . '</i>';
     break;
 case \thebuggenie\core\entities\tables\Log::LOG_ISSUE_POSTED:
     echo '<i>' . __('Posted by changed: %text', array('%text' => $log_action['text'])) . '</i>';
     break;
 default:
     if (empty($log_action['text'])) {
         echo '<i>' . __('Issue updated') . '</i>';
     } else {
         echo '<i>' . $log_action['text'] . '</i>';
     echo '<i>' . __('Resolution changed: %text', array('%text' => $item->getText())) . '</i>';
     break;
 case \thebuggenie\core\entities\tables\Log::LOG_ISSUE_PERCENT:
     echo '<i>' . __('Percent completed: %text', array('%text' => $item->getText())) . '</i>';
     break;
 case \thebuggenie\core\entities\tables\Log::LOG_ISSUE_MILESTONE:
     echo '<i>' . __('Target milestone changed: %text', array('%text' => $item->getText())) . '</i>';
     break;
 case \thebuggenie\core\entities\tables\Log::LOG_ISSUE_ISSUETYPE:
     echo '<i>' . __('Issue type changed: %text', array('%text' => $item->getText())) . '</i>';
     break;
 case \thebuggenie\core\entities\tables\Log::LOG_ISSUE_TIME_ESTIMATED:
     echo '<i>' . __('Estimation changed: %text', array('%text' => \thebuggenie\core\entities\common\Timeable::formatTimeableLog($item->getText(), $item->getPreviousValue(), $item->getCurrentValue(), true, true))) . '</i>';
     break;
 case \thebuggenie\core\entities\tables\Log::LOG_ISSUE_TIME_SPENT:
     echo '<i>' . __('Time spent: %text', array('%text' => \thebuggenie\core\entities\common\Timeable::formatTimeableLog($item->getText(), $item->getPreviousValue(), $item->getCurrentValue(), true, true))) . '</i>';
     break;
 case \thebuggenie\core\entities\tables\Log::LOG_ISSUE_ASSIGNED:
     echo '<i>' . __('Assignee changed: %text', array('%text' => $item->getText())) . '</i>';
     break;
 case \thebuggenie\core\entities\tables\Log::LOG_ISSUE_OWNED:
     echo '<i>' . __('Owner changed: %text', array('%text' => $item->getText())) . '</i>';
     break;
 case \thebuggenie\core\entities\tables\Log::LOG_ISSUE_POSTED:
     echo '<i>' . __('Posted by changed: %text', array('%text' => $item->getText())) . '</i>';
     break;
 default:
     if (!$item->getText()) {
         echo '<i>' . __('Issue updated') . '</i>';
     } else {
         echo '<i>' . $item->getText() . '</i>';
Ejemplo n.º 3
0
     if ($item->hasChangeDetails()) {
         echo __("Percent complete changed: %previous_value => %new_value", array('%previous_value' => '<strong>' . (int) $item->getPreviousValue() . '</strong>', '%new_value' => '<strong>' . (int) $item->getCurrentValue() . '</strong>'));
     }
     break;
 case \thebuggenie\core\entities\tables\Log::LOG_ISSUE_BLOCKED:
     echo image_tag('icon_locked.png');
     echo __('Blocking status changed: %value', array('%value' => '<strong>' . __('This issue is blocking the next release') . '</strong>'));
     break;
 case \thebuggenie\core\entities\tables\Log::LOG_ISSUE_UNBLOCKED:
     echo image_tag('icon_unlocked.png');
     echo __('Blocking status changed: %value', array('%value' => '<strong>' . __('This issue is no more blocking the next release') . '</strong>'));
     break;
 case \thebuggenie\core\entities\tables\Log::LOG_ISSUE_TIME_ESTIMATED:
     echo image_tag('icon_estimated_time.png');
     if ($item->hasChangeDetails()) {
         echo __("Estimated time changed: %value", array('%value' => '<strong>' . \thebuggenie\core\entities\common\Timeable::formatTimeableLog($item->getText(), $item->getPreviousValue(), $item->getCurrentValue(), true, true) . '</strong>'));
     }
     break;
 case \thebuggenie\core\entities\tables\Log::LOG_AFF_ADD:
     echo image_tag('icon_affected_items.png');
     if ($item->hasChangeDetails()) {
         echo __("Affected item added: %value", array('%value' => '<strong>' . $item->getText() . '</strong>'));
     }
     break;
 case \thebuggenie\core\entities\tables\Log::LOG_AFF_UPDATE:
     echo image_tag('icon_affected_items.png');
     if ($item->hasChangeDetails()) {
         echo __("Affected item updated: %value", array('%value' => '<strong>' . $item->getText() . '</strong>'));
     }
     break;
 case \thebuggenie\core\entities\tables\Log::LOG_AFF_DELETE:
     echo ' * ' . __('Resolution changed: %text', array('%text' => str_replace('&rArr;', '->', $item->getText())));
     break;
 case \thebuggenie\core\entities\tables\Log::LOG_ISSUE_PERCENT:
     echo ' * ' . __('Percent completed: %text', array('%text' => str_replace('&rArr;', '->', $item->getText())));
     break;
 case \thebuggenie\core\entities\tables\Log::LOG_ISSUE_MILESTONE:
     echo ' * ' . __('Target milestone changed: %text', array('%text' => str_replace('&rArr;', '->', $item->getText())));
     break;
 case \thebuggenie\core\entities\tables\Log::LOG_ISSUE_ISSUETYPE:
     echo ' * ' . __('Issue type changed: %text', array('%text' => str_replace('&rArr;', '->', $item->getText())));
     break;
 case \thebuggenie\core\entities\tables\Log::LOG_ISSUE_TIME_ESTIMATED:
     echo ' * ' . __('Estimation changed: %text', array('%text' => str_replace('&rArr;', '->', \thebuggenie\core\entities\common\Timeable::formatTimeableLog($item->getText(), $item->getPreviousValue(), $item->getCurrentValue(), true, true))));
     break;
 case \thebuggenie\core\entities\tables\Log::LOG_ISSUE_TIME_SPENT:
     echo ' * ' . __('Time spent: %text', array('%text' => str_replace('&rArr;', '->', \thebuggenie\core\entities\common\Timeable::formatTimeableLog($item->getText(), $item->getPreviousValue(), $item->getCurrentValue(), true, true))));
     break;
 case \thebuggenie\core\entities\tables\Log::LOG_ISSUE_ASSIGNED:
     echo ' * ' . __('Assignee changed: %text', array('%text' => $item->getText()));
     break;
 case \thebuggenie\core\entities\tables\Log::LOG_ISSUE_OWNED:
     echo ' * ' . __('Owner changed: %text', array('%text' => $item->getText()));
     break;
 case \thebuggenie\core\entities\tables\Log::LOG_ISSUE_POSTED:
     echo ' * ' . __('Posted by changed: %text', array('%text' => str_replace('&rArr;', '->', $item->getText())));
     break;
 default:
     if (!$item->getText()) {
         echo ' * ' . __('Issue updated');
     } else {
         echo ' * ' . $item->getText();
Ejemplo n.º 5
0
     echo __('Resolution changed: %text', array('%text' => $activity['text']));
     break;
 case \thebuggenie\core\entities\tables\Log::LOG_ISSUE_PERCENT:
     echo __('Percent completed: %text', array('%text' => $activity['text']));
     break;
 case \thebuggenie\core\entities\tables\Log::LOG_ISSUE_MILESTONE:
     echo __('Target milestone changed: %text', array('%text' => $activity['text']));
     break;
 case \thebuggenie\core\entities\tables\Log::LOG_ISSUE_ISSUETYPE:
     echo __('Issue type changed: %text', array('%text' => $activity['text']));
     break;
 case \thebuggenie\core\entities\tables\Log::LOG_ISSUE_TIME_ESTIMATED:
     echo __('Estimation changed: %text', array('%text' => \thebuggenie\core\entities\common\Timeable::formatTimeableLog($activity['text'], $activity['previous_value'], $activity['current_value'], true, true)));
     break;
 case \thebuggenie\core\entities\tables\Log::LOG_ISSUE_TIME_SPENT:
     echo __('Time spent: %text', array('%text' => \thebuggenie\core\entities\common\Timeable::formatTimeableLog($activity['text'], $activity['previous_value'], $activity['current_value'], true, true)));
     break;
 case \thebuggenie\core\entities\tables\Log::LOG_ISSUE_ASSIGNED:
     echo __('Assignee changed: %text', array('%text' => $activity['text']));
     break;
 case \thebuggenie\core\entities\tables\Log::LOG_ISSUE_OWNED:
     echo __('Owner changed: %text', array('%text' => $activity['text']));
     break;
 case \thebuggenie\core\entities\tables\Log::LOG_ISSUE_POSTED:
     echo __('Posted by changed: %text', array('%text' => $activity['text']));
     break;
 default:
     if (empty($activity['text'])) {
         echo __('Issue updated');
     } else {
         echo $activity['text'];