mirror of
https://we.phorge.it/source/phorge.git
synced 2025-04-06 17:38:29 +02:00
Adding in an edit icon on the action header
Summary: Test flight on Phabricator editing! I mostly looked at other code, thought it was well written and wrote my own code in the other code's image. Test Plan: Look at icons appearing! Reviewers: epriestley, #blessed_reviewers Reviewed By: epriestley CC: Korvin, epriestley, aran Differential Revision: https://secure.phabricator.com/D7911
This commit is contained in:
parent
5502fca5f4
commit
a5db959ff7
1 changed files with 7 additions and 1 deletions
|
@ -42,9 +42,15 @@ final class PHUIWorkpanelView extends AphrontView {
|
||||||
$footer_tag);
|
$footer_tag);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
$header_edit = id(new PHUIIconView())
|
||||||
|
->setSpriteSheet(PHUIIconView::SPRITE_ACTIONS)
|
||||||
|
->setSpriteIcon('settings-grey')
|
||||||
|
->setHref('#');
|
||||||
|
|
||||||
$header = id(new PhabricatorActionHeaderView())
|
$header = id(new PhabricatorActionHeaderView())
|
||||||
->setHeaderTitle($this->header)
|
->setHeaderTitle($this->header)
|
||||||
->setHeaderColor(PhabricatorActionHeaderView::HEADER_GREY);
|
->setHeaderColor(PhabricatorActionHeaderView::HEADER_GREY)
|
||||||
|
->addAction($header_edit);
|
||||||
|
|
||||||
$body = phutil_tag(
|
$body = phutil_tag(
|
||||||
'div',
|
'div',
|
||||||
|
|
Loading…
Add table
Reference in a new issue