Changeset View
Changeset View
Standalone View
Standalone View
src/infrastructure/diff/view/PHUIDiffInlineCommentDetailView.php
| Show First 20 Lines • Show All 116 Lines • ▼ Show 20 Lines | if (!$is_synthetic) { | ||||
| $draft_text = id(new PHUITagView()) | $draft_text = id(new PHUITagView()) | ||||
| ->setType(PHUITagView::TYPE_SHADE) | ->setType(PHUITagView::TYPE_SHADE) | ||||
| ->setName(pht('Unsubmitted')) | ->setName(pht('Unsubmitted')) | ||||
| ->setSlimShady(true) | ->setSlimShady(true) | ||||
| ->setShade(PHUITagView::COLOR_RED) | ->setShade(PHUITagView::COLOR_RED) | ||||
| ->addClass('mml inline-draft-text'); | ->addClass('mml inline-draft-text'); | ||||
| } | } | ||||
| $ghost_tag = null; | |||||
| if ($inline->getIsGhost()) { | |||||
| // TODO: This could also be a newer comment, not necessarily an older | |||||
| // comment. | |||||
| $ghost_tag = id(new PHUITagView()) | |||||
| ->setType(PHUITagView::TYPE_SHADE) | |||||
| ->setName(pht('Old Comment')) | |||||
| ->setSlimShady(true) | |||||
| ->setShade(PHUITagView::COLOR_BLUE) | |||||
| ->addClass('mml'); | |||||
| $classes[] = 'inline-comment-ghost'; | |||||
| } | |||||
| // I think this is unused | // I think this is unused | ||||
| if ($inline->getHasReplies()) { | if ($inline->getHasReplies()) { | ||||
| $classes[] = 'inline-comment-has-reply'; | $classes[] = 'inline-comment-has-reply'; | ||||
| } | } | ||||
| // I think this is unused | // I think this is unused | ||||
| if ($inline->getReplyToCommentPHID()) { | if ($inline->getReplyToCommentPHID()) { | ||||
| $classes[] = 'inline-comment-is-reply'; | $classes[] = 'inline-comment-is-reply'; | ||||
| } | } | ||||
| ▲ Show 20 Lines • Show All 213 Lines • ▼ Show 20 Lines | $group_left = phutil_tag( | ||||
| 'div', | 'div', | ||||
| array( | array( | ||||
| 'class' => 'inline-head-left', | 'class' => 'inline-head-left', | ||||
| ), | ), | ||||
| array( | array( | ||||
| $author, | $author, | ||||
| $author_owner, | $author_owner, | ||||
| $draft_text, | $draft_text, | ||||
| $ghost_tag, | |||||
| )); | )); | ||||
| $group_right = phutil_tag( | $group_right = phutil_tag( | ||||
| 'div', | 'div', | ||||
| array( | array( | ||||
| 'class' => 'inline-head-right', | 'class' => 'inline-head-right', | ||||
| ), | ), | ||||
| array( | array( | ||||
| Show All 28 Lines | |||||