mirror of
https://we.phorge.it/source/phorge.git
synced 2024-11-29 10:12:41 +01:00
Cleanup Countdown manual construction of monograms/uris
Summary: looked for places where Countdown monograms/uris were being constructed by hand, and updated with modern versions Test Plan: clicked around the Countdown UI, looking for broken links Reviewers: epriestley Reviewed By: epriestley Subscribers: chad, Korvin Maniphest Tasks: T12524 Differential Revision: https://secure.phabricator.com/D17665
This commit is contained in:
parent
6bf595b951
commit
c6c25b055b
4 changed files with 7 additions and 7 deletions
|
@ -28,7 +28,7 @@ final class PhabricatorCountdownViewController
|
|||
|
||||
$crumbs = $this
|
||||
->buildApplicationCrumbs()
|
||||
->addTextCrumb("C{$id}")
|
||||
->addTextCrumb($countdown->getMonogram())
|
||||
->setBorder(true);
|
||||
|
||||
$epoch = $countdown->getEpoch();
|
||||
|
|
|
@ -35,9 +35,9 @@ final class PhabricatorCountdownCountdownPHIDType extends PhabricatorPHIDType {
|
|||
$name = $countdown->getTitle();
|
||||
$id = $countdown->getID();
|
||||
|
||||
$handle->setName("C{$id}");
|
||||
$handle->setFullName("C{$id}: {$name}");
|
||||
$handle->setURI("/countdown/{$id}/");
|
||||
$handle->setName($countdown->getMonogram());
|
||||
$handle->setFullName(pht('%s: %s', $countdown->getMonogram(), $name));
|
||||
$handle->setURI($countdown->getURI());
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -108,7 +108,7 @@ final class PhabricatorCountdownSearchEngine
|
|||
$item = id(new PHUIObjectItemView())
|
||||
->setUser($viewer)
|
||||
->setObject($countdown)
|
||||
->setObjectName("C{$id}")
|
||||
->setObjectName($countdown->getMonogram())
|
||||
->setHeader($countdown->getTitle())
|
||||
->setHref($this->getApplicationURI("{$id}/"))
|
||||
->addByline(
|
||||
|
|
|
@ -14,12 +14,12 @@ final class PhabricatorCountdownView extends AphrontView {
|
|||
require_celerity_resource('phabricator-countdown-css');
|
||||
|
||||
$header_text = array(
|
||||
'C'.$countdown->getID(),
|
||||
$countdown->getMonogram(),
|
||||
' ',
|
||||
phutil_tag(
|
||||
'a',
|
||||
array(
|
||||
'href' => '/countdown/'.$countdown->getID(),
|
||||
'href' => $countdown->getURI(),
|
||||
),
|
||||
$countdown->getTitle()),
|
||||
);
|
||||
|
|
Loading…
Reference in a new issue