mirror of
https://we.phorge.it/source/phorge.git
synced 2024-11-18 12:52:42 +01:00
Fix search results with tables, fatals in Phortune
Summary: Previously we collapsed all table search results, but the new UI doesn't need it. Remove unused methods and fix CSS. Test Plan: Legalpad Signatures, Phortune Accounts. Reviewers: epriestley Reviewed By: epriestley Subscribers: Korvin Differential Revision: https://secure.phabricator.com/D16469
This commit is contained in:
parent
9422596ebf
commit
b75cea55a7
7 changed files with 11 additions and 19 deletions
|
@ -100,7 +100,7 @@ return array(
|
|||
'rsrc/css/application/releeph/releeph-preview-branch.css' => 'b7a6f4a5',
|
||||
'rsrc/css/application/releeph/releeph-request-differential-create-dialog.css' => '8d8b92cd',
|
||||
'rsrc/css/application/releeph/releeph-request-typeahead.css' => '667a48ae',
|
||||
'rsrc/css/application/search/application-search-view.css' => 'b3e0e5ef',
|
||||
'rsrc/css/application/search/application-search-view.css' => 'be6454ec',
|
||||
'rsrc/css/application/search/search-results.css' => '7dea472c',
|
||||
'rsrc/css/application/slowvote/slowvote.css' => 'a94b7230',
|
||||
'rsrc/css/application/tokens/tokens.css' => '3d0f239e',
|
||||
|
@ -542,7 +542,7 @@ return array(
|
|||
'aphront-tokenizer-control-css' => '056da01b',
|
||||
'aphront-tooltip-css' => '1a07aea8',
|
||||
'aphront-typeahead-control-css' => 'd4f16145',
|
||||
'application-search-view-css' => 'b3e0e5ef',
|
||||
'application-search-view-css' => 'be6454ec',
|
||||
'auth-css' => '0877ed6e',
|
||||
'bulk-job-css' => 'df9c1d4a',
|
||||
'changeset-view-manager' => 'a2828756',
|
||||
|
|
|
@ -39,7 +39,7 @@ final class PhortuneAccountListController extends PhortuneController {
|
|||
->setHeader($account->getName())
|
||||
->setHref($this->getApplicationURI($account->getID().'/'))
|
||||
->setObject($account)
|
||||
->setIcon('fa-credit-card');
|
||||
->setImageIcon('fa-credit-card');
|
||||
|
||||
$payment_list->addItem($item);
|
||||
}
|
||||
|
@ -71,7 +71,7 @@ final class PhortuneAccountListController extends PhortuneController {
|
|||
->setHeader($merchant->getName())
|
||||
->setHref($this->getApplicationURI('/merchant/'.$merchant->getID().'/'))
|
||||
->setObject($merchant)
|
||||
->setIcon('fa-bank');
|
||||
->setImageIcon('fa-bank');
|
||||
|
||||
$merchant_list->addItem($item);
|
||||
}
|
||||
|
|
|
@ -41,7 +41,7 @@ final class PhortuneProductListController extends PhabricatorController {
|
|||
->setHeader($product->getProductName())
|
||||
->setHref($view_uri)
|
||||
->addAttribute($price->formatForDisplay())
|
||||
->setIcon('fa-gift');
|
||||
->setImageIcon('fa-gift');
|
||||
|
||||
$product_list->addItem($item);
|
||||
}
|
||||
|
|
|
@ -74,7 +74,7 @@ final class PhortuneMerchantSearchEngine
|
|||
->setHeader($merchant->getName())
|
||||
->setHref('/phortune/merchant/'.$merchant->getID().'/')
|
||||
->setObject($merchant)
|
||||
->setIcon('fa-bank');
|
||||
->setImageIcon('fa-bank');
|
||||
|
||||
$list->addItem($item);
|
||||
}
|
||||
|
|
|
@ -270,9 +270,6 @@ final class PhabricatorApplicationSearchController
|
|||
if ($list->getContent()) {
|
||||
$box->appendChild($list->getContent());
|
||||
}
|
||||
if ($list->getCollapsed()) {
|
||||
$box->setCollapsed(true);
|
||||
}
|
||||
|
||||
$result_header = $list->getHeader();
|
||||
if ($result_header) {
|
||||
|
|
|
@ -12,7 +12,6 @@ final class PhabricatorApplicationSearchResultView extends Phobject {
|
|||
private $content = null;
|
||||
private $infoView = null;
|
||||
private $actions = array();
|
||||
private $collapsed = null;
|
||||
private $noDataString;
|
||||
private $crumbs = array();
|
||||
private $header;
|
||||
|
@ -70,15 +69,6 @@ final class PhabricatorApplicationSearchResultView extends Phobject {
|
|||
return $this->actions;
|
||||
}
|
||||
|
||||
public function setCollapsed($collapsed) {
|
||||
$this->collapsed = $collapsed;
|
||||
return $this;
|
||||
}
|
||||
|
||||
public function getCollapsed() {
|
||||
return $this->collapsed;
|
||||
}
|
||||
|
||||
public function setNoDataString($nodata) {
|
||||
$this->noDataString = $nodata;
|
||||
return $this;
|
||||
|
|
|
@ -16,6 +16,11 @@
|
|||
border-bottom: 1px solid {$thinblueborder};
|
||||
}
|
||||
|
||||
.application-search-view .phui-object-box.phui-object-box-collapsed
|
||||
.phui-header-shell {
|
||||
padding: 20px 8px;
|
||||
}
|
||||
|
||||
.application-search-results
|
||||
.phui-profile-header.phui-header-shell .phui-header-header {
|
||||
font-size: 20px;
|
||||
|
|
Loading…
Reference in a new issue