Changeset View
Changeset View
Standalone View
Standalone View
src/infrastructure/diff/view/PHUIDiffInlineCommentDetailView.php
Show First 20 Lines • Show All 246 Lines • ▼ Show 20 Lines | if (!$is_synthetic) { | ||||
$is_done = true; | $is_done = true; | ||||
break; | break; | ||||
default: | default: | ||||
case PhabricatorInlineCommentInterface::STATE_UNDONE: | case PhabricatorInlineCommentInterface::STATE_UNDONE: | ||||
$is_done = false; | $is_done = false; | ||||
break; | break; | ||||
} | } | ||||
// If you don't have permission to mark the comment as "Done", you also | |||||
// can not see the draft state. | |||||
if (!$this->getCanMarkDone()) { | |||||
$draft_state = false; | |||||
} | |||||
if ($is_done) { | if ($is_done) { | ||||
$classes[] = 'inline-is-done'; | $classes[] = 'inline-is-done'; | ||||
} | } | ||||
if ($draft_state) { | if ($draft_state) { | ||||
$classes[] = 'inline-state-is-draft'; | $classes[] = 'inline-state-is-draft'; | ||||
} | } | ||||
▲ Show 20 Lines • Show All 121 Lines • Show Last 20 Lines |