Beispiel #1
0
 /**
  * @param Tag $t
  * @param Activity $activity
  * @return string
  */
 private function renderContent($t, $activity)
 {
     switch ($activity->getActivityType()) {
         case ActivityType::COMMENT:
             return $t->div(a::c1ass('panel panel-primary alert-primary no-transform space-reduce'), $activity->getNewValue());
         case ActivityType::EDITED_CONTENT:
         case ActivityType::UPDATE_DESCRIPTION:
             return $t->div(a::c1ass('panel panel-primary alert-primary no-transform space-reduce col-sm-12 col-xs-12'), $t->i($t->mark(a::c1ass('mark-color-red col-sm-12 col-xs-12'), $t->del($activity->getOldValue()))), $t->i($t->mark(a::c1ass('mark-color-green col-sm-12 col-xs-12'), $activity->getNewValue())));
         case ActivityType::CHANGE_ASSIGNMENT:
         case ActivityType::CHANGE_STATUS:
         case ActivityType::ISSUE_CREATED:
         case ActivityType::LOG_TIME:
         case ActivityType::STARTED_PROGRESS:
         case ActivityType::UPLOAD_FILE:
         case ActivityType::UPDATE_CUSTOM_FIELDS:
         default:
             return "";
     }
 }