mirror of
https://we.phorge.it/source/phorge.git
synced 2024-11-19 05:12:41 +01:00
Remove unused PhabricatorProfileView
Summary: After D1281, this has no callsites. I don't see us wanting to go back to it. Test Plan: Grepped for symbol name, no hits. Reviewers: btrahan, jungejason Reviewed By: jungejason CC: aran, jungejason Differential Revision: https://secure.phabricator.com/D1282
This commit is contained in:
parent
2e6ab9b9a6
commit
cacdfcc8ea
3 changed files with 0 additions and 111 deletions
|
@ -570,7 +570,6 @@ phutil_register_library_map(array(
|
|||
'PhabricatorPeopleLogsController' => 'applications/people/controller/logs',
|
||||
'PhabricatorPeopleProfileController' => 'applications/people/controller/profile',
|
||||
'PhabricatorProfileHeaderView' => 'view/layout/profileheader',
|
||||
'PhabricatorProfileView' => 'view/layout/profile',
|
||||
'PhabricatorProject' => 'applications/project/storage/project',
|
||||
'PhabricatorProjectAffiliation' => 'applications/project/storage/affiliation',
|
||||
'PhabricatorProjectAffiliationEditController' => 'applications/project/controller/editaffiliation',
|
||||
|
@ -1220,7 +1219,6 @@ phutil_register_library_map(array(
|
|||
'PhabricatorPeopleLogsController' => 'PhabricatorPeopleController',
|
||||
'PhabricatorPeopleProfileController' => 'PhabricatorPeopleController',
|
||||
'PhabricatorProfileHeaderView' => 'AphrontView',
|
||||
'PhabricatorProfileView' => 'AphrontView',
|
||||
'PhabricatorProject' => 'PhabricatorProjectDAO',
|
||||
'PhabricatorProjectAffiliation' => 'PhabricatorProjectDAO',
|
||||
'PhabricatorProjectAffiliationEditController' => 'PhabricatorProjectController',
|
||||
|
|
|
@ -1,93 +0,0 @@
|
|||
<?php
|
||||
|
||||
/*
|
||||
* Copyright 2011 Facebook, Inc.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
final class PhabricatorProfileView extends AphrontView {
|
||||
|
||||
protected $items = array();
|
||||
protected $profilePicture;
|
||||
protected $profileName;
|
||||
protected $profileRealname;
|
||||
protected $profileTitle;
|
||||
|
||||
public function addProfileItem($item) {
|
||||
$this->items[] = $item;
|
||||
return $this;
|
||||
}
|
||||
|
||||
public function setProfilePicture($picture) {
|
||||
$this->profilePicture = $picture;
|
||||
return $this;
|
||||
}
|
||||
|
||||
public function setProfileNames($name, $realname = null, $title = null) {
|
||||
$this->profileName = $name;
|
||||
$this->profileRealname = $realname;
|
||||
$this->profileTitle = $title;
|
||||
return $this;
|
||||
}
|
||||
|
||||
public function render() {
|
||||
$view = new AphrontNullView();
|
||||
$view->appendChild($this->items);
|
||||
|
||||
$side_links = null;
|
||||
$realname = null;
|
||||
$title = null;
|
||||
if (!empty($this->profileRealname)) {
|
||||
$realname =
|
||||
'<h2 class="phabricator-profile-realname">'.
|
||||
phutil_escape_html($this->profileRealname).
|
||||
'</h2>';
|
||||
}
|
||||
|
||||
if (!empty($this->profileTitle)) {
|
||||
$title =
|
||||
'<h2>'.
|
||||
phutil_escape_html($this->profileTitle).
|
||||
'</h2>';
|
||||
}
|
||||
|
||||
if (!empty($this->items)) {
|
||||
$side_links =
|
||||
$view->render().
|
||||
'<hr />';
|
||||
}
|
||||
|
||||
require_celerity_resource('phabricator-profile-css');
|
||||
|
||||
return
|
||||
'<table class="phabricator-profile-master-layout">'.
|
||||
'<tr>'.
|
||||
'<td class="phabricator-profile-navigation">'.
|
||||
'<h1>'.phutil_escape_html($this->profileName).'</h1>'.
|
||||
$realname.
|
||||
$title.
|
||||
'<hr />'.
|
||||
'<img class="phabricator-profile-image" src="'.
|
||||
$this->profilePicture.
|
||||
'"/>'.
|
||||
'<hr />'.
|
||||
$side_links.
|
||||
'</td>'.
|
||||
'<td class="phabricator-profile-content">'.
|
||||
$this->renderChildren().
|
||||
'</td>'.
|
||||
'</tr>'.
|
||||
'</table>';
|
||||
}
|
||||
}
|
|
@ -1,16 +0,0 @@
|
|||
<?php
|
||||
/**
|
||||
* This file is automatically generated. Lint this module to rebuild it.
|
||||
* @generated
|
||||
*/
|
||||
|
||||
|
||||
|
||||
phutil_require_module('phabricator', 'infrastructure/celerity/api');
|
||||
phutil_require_module('phabricator', 'view/base');
|
||||
phutil_require_module('phabricator', 'view/null');
|
||||
|
||||
phutil_require_module('phutil', 'markup');
|
||||
|
||||
|
||||
phutil_require_source('PhabricatorProfileView.php');
|
Loading…
Reference in a new issue