1
0
Fork 0
mirror of https://we.phorge.it/source/phorge.git synced 2024-12-24 22:40:55 +01:00

Link Ponder Answer header to user

Summary: Fixes T9509

Test Plan: View a Ponder Question, hover over answerer name, get URL.

Reviewers: epriestley

Reviewed By: epriestley

Subscribers: Korvin

Maniphest Tasks: T9509

Differential Revision: https://secure.phabricator.com/D14238
This commit is contained in:
Chad Little 2015-10-06 14:15:50 -07:00
parent 2bfa0e087e
commit 4549afbdce

View file

@ -77,10 +77,17 @@ final class PonderAnswerView extends AphrontTagView {
->setIconFont('fa-bars') ->setIconFont('fa-bars')
->setDropdownMenu($actions); ->setDropdownMenu($actions);
$header_name = phutil_tag(
'a',
array(
'href' => $handle->getURI(),
),
$handle->getName());
$header = id(new PHUIHeaderView()) $header = id(new PHUIHeaderView())
->setUser($viewer) ->setUser($viewer)
->setEpoch($answer->getDateModified()) ->setEpoch($answer->getDateModified())
->setHeader($handle->getName()) ->setHeader($header_name)
->addActionLink($action_button) ->addActionLink($action_button)
->setImage($handle->getImageURI()) ->setImage($handle->getImageURI())
->setImageURL($handle->getURI()); ->setImageURL($handle->getURI());