1
0
Fork 0
mirror of https://we.phorge.it/source/phorge.git synced 2024-12-23 22:10:55 +01:00

Use RemarkupControl in Differential inline comment UI

Summary: Fixes T4317. Update the "inline comment" control to a RemarkupControl. This could maybe use some padding/spacing/design touches eventually but seems OK for the moment.

Test Plan: {F101825}

Reviewers: chad, btrahan

Reviewed By: chad

CC: chad, aran

Maniphest Tasks: T4317

Differential Revision: https://secure.phabricator.com/D7969
This commit is contained in:
epriestley 2014-01-14 15:15:47 -08:00
parent 9f6aa3526a
commit 42d9fa34e2
3 changed files with 7 additions and 22 deletions

View file

@ -104,16 +104,6 @@ final class DifferentialInlineCommentEditView extends AphrontView {
),
pht('Cancel'));
$formatting = phutil_tag(
'a',
array(
'href' => PhabricatorEnv::getDoclink(
'article/Remarkup_Reference.html'),
'tabindex' => '-1',
'target' => '_blank',
),
pht('Formatting Reference'));
$title = phutil_tag(
'div',
array(
@ -134,7 +124,6 @@ final class DifferentialInlineCommentEditView extends AphrontView {
'class' => 'differential-inline-comment-edit-buttons',
),
array(
$formatting,
$buttons,
phutil_tag('div', array('style' => 'clear: both'), ''),
));

View file

@ -235,14 +235,11 @@ abstract class PhabricatorInlineCommentController
}
private function renderTextArea($text) {
return javelin_tag(
'textarea',
array(
'class' => 'differential-inline-comment-edit-textarea',
'sigil' => 'differential-inline-comment-edit-textarea',
'name' => 'text',
),
$text);
return id(new PhabricatorRemarkupControl())
->setUser($this->getRequest()->getUser())
->setSigil('differential-inline-comment-edit-textarea')
->setName('text')
->setValue($text);
}
}

View file

@ -287,10 +287,9 @@ td.cov-X {
font-style: normal;
}
.differential-inline-comment-edit-textarea {
.differential-inline-comment-edit-body .aphront-form-input {
margin: 0;
width: 100%;
height: 12em;
}
.differential-changeset-buttons {