mirror of
https://we.phorge.it/source/phorge.git
synced 2024-12-24 06:20:56 +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:
parent
2bfa0e087e
commit
4549afbdce
1 changed files with 8 additions and 1 deletions
|
@ -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());
|
||||||
|
|
Loading…
Reference in a new issue