diff --git a/src/applications/ponder/view/PonderPostBodyView.php b/src/applications/ponder/view/PonderPostBodyView.php index 77e72ee33b..4bfb4362ea 100644 --- a/src/applications/ponder/view/PonderPostBodyView.php +++ b/src/applications/ponder/view/PonderPostBodyView.php @@ -56,10 +56,12 @@ final class PonderPostBodyView extends AphrontView { $target->getMarkupField(), $this->user); - $content = - '
'. - $content. - '
'; + $content = phutil_tag( + 'div', + array( + 'class' => 'phabricator-remarkup', + ), + $content); $author = $this->handles[$target->getAuthorPHID()]; $actions = array($author->renderLink().' '.$this->action); @@ -88,10 +90,12 @@ final class PonderPostBodyView extends AphrontView { } $xaction_view->appendChild( - '
'. - $content. - '
' - ); + phutil_tag( + 'div', + array( + 'class' => 'ponder-post-core', + ), + $content)); $outerview = $xaction_view; if (!$this->preview) { @@ -113,14 +117,4 @@ final class PonderPostBodyView extends AphrontView { return $outerview->render(); } - private function renderHandleList(array $phids) { - $result = array(); - foreach ($phids as $phid) { - $result[] = $this->handles[$phid]->renderLink(); - } - return implode(', ', $result); - } - - - } diff --git a/src/applications/repository/controller/PhabricatorRepositoryListController.php b/src/applications/repository/controller/PhabricatorRepositoryListController.php index 8c4baea1d0..3b32685467 100644 --- a/src/applications/repository/controller/PhabricatorRepositoryListController.php +++ b/src/applications/repository/controller/PhabricatorRepositoryListController.php @@ -113,7 +113,7 @@ final class PhabricatorRepositoryListController 'class' => 'button grey small', ), 'Edit'), - javelin_render_tag( + javelin_tag( 'a', array( 'href' => '/repository/project/delete/'.$project->getID().'/', diff --git a/src/view/layout/AphrontPanelView.php b/src/view/layout/AphrontPanelView.php index 2c186d6e24..2d2e313977 100644 --- a/src/view/layout/AphrontPanelView.php +++ b/src/view/layout/AphrontPanelView.php @@ -15,7 +15,7 @@ final class AphrontPanelView extends AphrontView { public function setCreateButton($create_button, $href) { $this->addButton( - phutil_render_tag( + phutil_tag( 'a', array( 'href' => $href, diff --git a/src/view/layout/PhabricatorMenuView.php b/src/view/layout/PhabricatorMenuView.php index bf1d601eb2..c863f9dfa1 100644 --- a/src/view/layout/PhabricatorMenuView.php +++ b/src/view/layout/PhabricatorMenuView.php @@ -159,6 +159,6 @@ final class PhabricatorMenuView extends AphrontTagView { } protected function getTagContent() { - return $this->renderSingleView($this->items); + return $this->renderHTMLView($this->items); } } diff --git a/src/view/layout/PhabricatorTimelineView.php b/src/view/layout/PhabricatorTimelineView.php index e5d7dae568..3977a320b2 100644 --- a/src/view/layout/PhabricatorTimelineView.php +++ b/src/view/layout/PhabricatorTimelineView.php @@ -27,13 +27,13 @@ final class PhabricatorTimelineView extends AphrontView { } $events[] = $spacer; - return phutil_render_tag( + return phutil_tag( 'div', array( 'class' => 'phabricator-timeline-view', 'id' => $this->id, ), - implode('', $events)); + $events); } public static function renderSpacer() {