mirror of
https://we.phorge.it/source/phorge.git
synced 2024-11-18 12:52:42 +01:00
Fix header tag on Hovercards
Summary: Switch to new method. Test Plan: Hover over task, see tag in correct place. Reviewers: epriestley Reviewed By: epriestley Subscribers: Korvin Differential Revision: https://secure.phabricator.com/D15403
This commit is contained in:
parent
fec1a154d5
commit
5a43e2040e
5 changed files with 12 additions and 6 deletions
|
@ -7,7 +7,7 @@
|
|||
*/
|
||||
return array(
|
||||
'names' => array(
|
||||
'core.pkg.css' => 'c0f196d2',
|
||||
'core.pkg.css' => '3d58b25a',
|
||||
'core.pkg.js' => '7d8faf57',
|
||||
'darkconsole.pkg.js' => 'e7393ebb',
|
||||
'differential.pkg.css' => '2de124c9',
|
||||
|
@ -135,7 +135,7 @@ return array(
|
|||
'rsrc/css/phui/phui-form-view.css' => '4a1a0f5e',
|
||||
'rsrc/css/phui/phui-form.css' => 'aac1d51d',
|
||||
'rsrc/css/phui/phui-head-thing.css' => '11731da0',
|
||||
'rsrc/css/phui/phui-header-view.css' => '32e71367',
|
||||
'rsrc/css/phui/phui-header-view.css' => '26cffd3d',
|
||||
'rsrc/css/phui/phui-hovercard.css' => 'de1a2119',
|
||||
'rsrc/css/phui/phui-icon-set-selector.css' => '1ab67aad',
|
||||
'rsrc/css/phui/phui-icon.css' => '3f33ab57',
|
||||
|
@ -820,7 +820,7 @@ return array(
|
|||
'phui-form-css' => 'aac1d51d',
|
||||
'phui-form-view-css' => '4a1a0f5e',
|
||||
'phui-head-thing-view-css' => '11731da0',
|
||||
'phui-header-view-css' => '32e71367',
|
||||
'phui-header-view-css' => '26cffd3d',
|
||||
'phui-hovercard' => '1bd28176',
|
||||
'phui-hovercard-view-css' => 'de1a2119',
|
||||
'phui-icon-set-selector-css' => '1ab67aad',
|
||||
|
|
|
@ -59,7 +59,8 @@ final class PassphraseCredentialViewController extends PassphraseController {
|
|||
$header = id(new PHUIHeaderView())
|
||||
->setUser($viewer)
|
||||
->setHeader($credential->getName())
|
||||
->setPolicyObject($credential);
|
||||
->setPolicyObject($credential)
|
||||
->setHeaderIcon('fa-user-secret');
|
||||
|
||||
if ($credential->getIsDestroyed()) {
|
||||
$header->setStatus('fa-ban', 'red', pht('Destroyed'));
|
||||
|
|
|
@ -110,7 +110,8 @@ final class PhabricatorPasteViewController extends PhabricatorPasteController {
|
|||
->setHeader($title)
|
||||
->setUser($this->getRequest()->getUser())
|
||||
->setStatus($header_icon, $header_color, $header_name)
|
||||
->setPolicyObject($paste);
|
||||
->setPolicyObject($paste)
|
||||
->setHeaderIcon('fa-clipboard');
|
||||
|
||||
return $header;
|
||||
}
|
||||
|
|
|
@ -106,7 +106,7 @@ final class PHUIHovercardView extends AphrontTagView {
|
|||
$header->setHeader($title);
|
||||
if ($this->tags) {
|
||||
foreach ($this->tags as $tag) {
|
||||
$header->addTag($tag);
|
||||
$header->addActionItem($tag);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -175,6 +175,10 @@ body .phui-header-shell.phui-bleed-header
|
|||
margin-top: 8px;
|
||||
}
|
||||
|
||||
.phui-header-subheader .phui-icon-view {
|
||||
margin-right: 4px;
|
||||
}
|
||||
|
||||
.phui-header-subheader .phui-tag-view .phui-icon-view,
|
||||
.phui-header-subheader .policy-header-callout .phui-icon-view {
|
||||
display: inline-block;
|
||||
|
|
Loading…
Reference in a new issue