Restore merge of phutil_tag.

This commit is contained in:
epriestley
2013-02-13 14:50:15 -08:00
parent 73cce6e131
commit ef7f16180c
264 changed files with 1690 additions and 1716 deletions

View File

@@ -108,8 +108,8 @@ final class PhrictionEditController
$dialog = new AphrontDialogView();
$dialog->setUser($user);
$dialog->setTitle(pht('No Edits'));
$dialog->appendChild(
'<p>'.pht('You did not make any changes to the document.').'</p>');
$dialog->appendChild(phutil_tag('p', array(), pht(
'You did not make any changes to the document.')));
$dialog->addCancelButton($request->getRequestURI());
return id(new AphrontDialogResponse())->setDialog($dialog);
@@ -122,8 +122,8 @@ final class PhrictionEditController
$dialog = new AphrontDialogView();
$dialog->setUser($user);
$dialog->setTitle(pht('Empty Page'));
$dialog->appendChild(
'<p>'.pht('You can not create an empty document.').'</p>');
$dialog->appendChild(phutil_tag('p', array(), pht(
'You can not create an empty document.')));
$dialog->addCancelButton($request->getRequestURI());
return id(new AphrontDialogResponse())->setDialog($dialog);
@@ -231,17 +231,15 @@ final class PhrictionEditController
->setHeader($panel_header)
->appendChild($form);
$preview_panel =
$preview_panel = hsprintf(
'<div class="aphront-panel-preview aphront-panel-preview-wide">
<div class="phriction-document-preview-header">
'.pht('Document Preview').'
</div>
<div class="phriction-document-preview-header">%s</div>
<div id="document-preview">
<div class="aphront-panel-preview-loading-text">
'.pht('Loading preview...').'
</div>
<div class="aphront-panel-preview-loading-text">%s</div>
</div>
</div>';
</div>',
pht('Document Preview'),
pht('Loading preview...'));
Javelin::initBehavior(
'phriction-document-preview',