Changeset View
Changeset View
Standalone View
Standalone View
src/applications/conpherence/view/ConpherenceTransactionView.php
Show First 20 Lines • Show All 80 Lines • ▼ Show 20 Lines | switch ($transaction->getTransactionType()) { | ||||
$comment = $transaction->getComment(); | $comment = $transaction->getComment(); | ||||
$content = $this->markupEngine->getOutput( | $content = $this->markupEngine->getOutput( | ||||
$comment, | $comment, | ||||
PhabricatorApplicationTransactionComment::MARKUP_FIELD_COMMENT); | PhabricatorApplicationTransactionComment::MARKUP_FIELD_COMMENT); | ||||
$content_class = 'conpherence-message phabricator-remarkup'; | $content_class = 'conpherence-message phabricator-remarkup'; | ||||
$transaction_view | $transaction_view | ||||
->setImageURI($author->getImageURI()) | ->setImageURI($author->getImageURI()) | ||||
->setActions(array($author->renderLink())); | ->setActions(array($author->renderLink())); | ||||
$transaction_view->appendChild( | |||||
phutil_tag( | |||||
'div', | |||||
array( | |||||
'class' => 'transaction-hidden-info', | |||||
'data-sigil' => 'conpherence-message-author', | |||||
), | |||||
$author->getLinkName())); | |||||
break; | break; | ||||
} | } | ||||
$transaction_view->appendChild( | $transaction_view->appendChild( | ||||
phutil_tag( | phutil_tag( | ||||
'div', | 'div', | ||||
array( | array( | ||||
'class' => $content_class | 'class' => $content_class, | ||||
'data-sigil' => 'conpherence-message-content', | |||||
), | ), | ||||
$content)); | $content)); | ||||
return $transaction_view->render(); | return $transaction_view->render(); | ||||
} | } | ||||
} | } |