1
0
Fork 0
mirror of https://we.phorge.it/source/phorge.git synced 2024-11-20 13:52:40 +01: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:
Mikael Knutsson 2014-01-08 16:20:31 -08:00 committed by epriestley
parent 5502fca5f4
commit a5db959ff7

View file

@ -42,9 +42,15 @@ final class PHUIWorkpanelView extends AphrontView {
$footer_tag);
}
$header_edit = id(new PHUIIconView())
->setSpriteSheet(PHUIIconView::SPRITE_ACTIONS)
->setSpriteIcon('settings-grey')
->setHref('#');
$header = id(new PhabricatorActionHeaderView())
->setHeaderTitle($this->header)
->setHeaderColor(PhabricatorActionHeaderView::HEADER_GREY);
->setHeaderColor(PhabricatorActionHeaderView::HEADER_GREY)
->addAction($header_edit);
$body = phutil_tag(
'div',