render_tag -> tag: misc views
Summary: See inlines. Test Plan: See inlines. Reviewers: vrana Reviewed By: vrana CC: aran Maniphest Tasks: T2432 Differential Revision: https://secure.phabricator.com/D4768
This commit is contained in:
@@ -96,9 +96,9 @@ abstract class PhabricatorDirectoryController extends PhabricatorController {
|
||||
|
||||
$nav->addMenuItem($show_item);
|
||||
$nav->addCustomBlock(
|
||||
'<div '.
|
||||
'id="'.phutil_escape_html($show_tiles_id).'"'.
|
||||
'style="display: none;">');
|
||||
hsprintf(
|
||||
'<div id="%s" style="display: none;">',
|
||||
$show_tiles_id));
|
||||
|
||||
Javelin::initBehavior('phabricator-home-reveal-tiles', array(
|
||||
'tilesID' => $show_tiles_id,
|
||||
@@ -128,19 +128,20 @@ abstract class PhabricatorDirectoryController extends PhabricatorController {
|
||||
}
|
||||
$nav->addLabel($groups[$group]);
|
||||
}
|
||||
|
||||
$nav->addCustomBlock(
|
||||
phutil_render_tag(
|
||||
phutil_tag(
|
||||
'div',
|
||||
array(
|
||||
'class' => 'application-tile-group',
|
||||
),
|
||||
id(new AphrontNullView())->appendChild($tiles)->render()));
|
||||
mpull($tiles, 'render')));
|
||||
}
|
||||
|
||||
$is_hide = ($tile_display == PhabricatorApplication::TILE_HIDE);
|
||||
if ($is_hide) {
|
||||
$nav->addMenuItem($hide_item);
|
||||
$nav->addCustomBlock('</div>');
|
||||
$nav->addCustomBlock(hsprintf('</div>'));
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user