mirror of
https://we.phorge.it/source/phorge.git
synced 2024-11-28 01:32:42 +01:00
4c914a5c49
Summary: After D5305, this method does nothing since we automatically figure out what we need to do. Test Plan: - Viewed a page with the main menu on it (MainMenuView). - Viewed a revision with transactions on it (TransactionView). - Viewed timeline UIExample (TimelineView, TimelineEventView). - Viewed a revision (PropertyListView). - Viewed a profile (ProfileHeaderView). - Viewed Pholio list (PinboardView, PinboardItemView). - Viewed Config (ObjectItemView, ObjectItemListView). - Viewed Home (MenuView). - Viewed a revision (HeaderView, CrumbsView, ActionListView). - Viewed a revision with an inline comment (anchorview). - Viewed a Phriction diff page (AphrontCrumbsView). - Filed T2721 to get rid of this. - Looked at Pholio and made inlines and comments (mockimages, pholioinlinecomment/save/edit). - Looked at conpherences. - Browsed around. Reviewers: chad, vrana Reviewed By: chad CC: edward, aran Differential Revision: https://secure.phabricator.com/D5307
37 lines
825 B
PHP
37 lines
825 B
PHP
<?php
|
|
|
|
final class PhabricatorPinboardView extends AphrontView {
|
|
|
|
private $items = array();
|
|
private $noDataString;
|
|
|
|
public function setNoDataString($no_data_string) {
|
|
$this->noDataString = $no_data_string;
|
|
return $this;
|
|
}
|
|
|
|
public function addItem(PhabricatorPinboardItemView $item) {
|
|
$this->items[] = $item;
|
|
return $this;
|
|
}
|
|
|
|
public function render() {
|
|
require_celerity_resource('phabricator-pinboard-view-css');
|
|
|
|
if (!$this->items) {
|
|
$string = nonempty($this->noDataString, pht('No data.'));
|
|
return id(new AphrontErrorView())
|
|
->setSeverity(AphrontErrorView::SEVERITY_NODATA)
|
|
->appendChild($string)
|
|
->render();
|
|
}
|
|
|
|
return phutil_tag(
|
|
'div',
|
|
array(
|
|
'class' => 'phabricator-pinboard-view',
|
|
),
|
|
$this->items);
|
|
}
|
|
|
|
}
|