mirror of
https://we.phorge.it/source/phorge.git
synced 2025-02-13 07:18:35 +01:00
Add a formatting reference link to the inline comment editor
Summary: Various text boxes have a documentation link below them. Make the Differential inline comment box one of them. Test Plan: Loaded Differential revision in sandbox. Played around with inline comments. Reviewers: epriestley Reviewed By: epriestley CC: aran, Korvin Maniphest Tasks: T1513 Differential Revision: https://secure.phabricator.com/D3024
This commit is contained in:
parent
9be12551a9
commit
f5c08f113e
1 changed files with 12 additions and 0 deletions
|
@ -118,6 +118,17 @@ final class DifferentialInlineCommentEditView extends AphrontView {
|
||||||
'Cancel');
|
'Cancel');
|
||||||
|
|
||||||
$buttons = implode('', $buttons);
|
$buttons = implode('', $buttons);
|
||||||
|
|
||||||
|
$formatting = phutil_render_tag(
|
||||||
|
'a',
|
||||||
|
array(
|
||||||
|
'href' => PhabricatorEnv::getDoclink(
|
||||||
|
'article/Remarkup_Reference.html'),
|
||||||
|
'tabindex' => '-1',
|
||||||
|
'target' => '_blank',
|
||||||
|
),
|
||||||
|
'Formatting Reference');
|
||||||
|
|
||||||
return javelin_render_tag(
|
return javelin_render_tag(
|
||||||
'div',
|
'div',
|
||||||
array(
|
array(
|
||||||
|
@ -136,6 +147,7 @@ final class DifferentialInlineCommentEditView extends AphrontView {
|
||||||
$this->renderChildren().
|
$this->renderChildren().
|
||||||
'</div>'.
|
'</div>'.
|
||||||
'<div class="differential-inline-comment-edit-buttons">'.
|
'<div class="differential-inline-comment-edit-buttons">'.
|
||||||
|
$formatting.
|
||||||
$buttons.
|
$buttons.
|
||||||
'<div style="clear: both;"></div>'.
|
'<div style="clear: both;"></div>'.
|
||||||
'</div>');
|
'</div>');
|
||||||
|
|
Loading…
Add table
Reference in a new issue