Differential D25095 Diff 398 src/applications/transactions/view/PhabricatorApplicationTransactionView.php
Changeset View
Changeset View
Standalone View
Standalone View
src/applications/transactions/view/PhabricatorApplicationTransactionView.php
Show First 20 Lines • Show All 487 Lines • ▼ Show 20 Lines | if ($this->getShowEditActions() && | ||||
$has_deleted_comment = | $has_deleted_comment = | ||||
$xaction->getComment() && | $xaction->getComment() && | ||||
$xaction->getComment()->getIsDeleted(); | $xaction->getComment()->getIsDeleted(); | ||||
$has_removed_comment = | $has_removed_comment = | ||||
$xaction->getComment() && | $xaction->getComment() && | ||||
$xaction->getComment()->getIsRemoved(); | $xaction->getComment()->getIsRemoved(); | ||||
// Make designers happy to make CSS customizations | |||||
if ($has_removed_comment) { | |||||
$event->addClass('phui-timeline-shell-removed'); | |||||
} | |||||
if ($xaction->getCommentVersion() > 1 && !$has_removed_comment) { | if ($xaction->getCommentVersion() > 1 && !$has_removed_comment) { | ||||
$event->setIsEdited(true); | $event->setIsEdited(true); | ||||
} | } | ||||
if (!$has_removed_comment) { | if (!$has_removed_comment) { | ||||
$event->setIsNormalComment(true); | $event->setIsNormalComment(true); | ||||
} | } | ||||
▲ Show 20 Lines • Show All 62 Lines • Show Last 20 Lines |
Content licensed under Creative Commons Attribution-ShareAlike 4.0 (CC-BY-SA) unless otherwise noted; code licensed under Apache 2.0 or other open source licenses. · CC BY-SA 4.0 · Apache 2.0