mirror of
https://we.phorge.it/source/phorge.git
synced 2024-11-18 12:52:42 +01:00
Add crumbs to Calendar events to return to the month/day view
Summary: Ref T11326. This makes it a little easier to jump back up to check out your day. Test Plan: {F1725575} Reviewers: chad Reviewed By: chad Maniphest Tasks: T11326 Differential Revision: https://secure.phabricator.com/D16309
This commit is contained in:
parent
4859a33739
commit
959337ec62
1 changed files with 12 additions and 0 deletions
|
@ -26,6 +26,18 @@ final class PhabricatorCalendarEventViewController
|
|||
$monogram = $event->getMonogram();
|
||||
$page_title = $monogram.' '.$event->getName();
|
||||
$crumbs = $this->buildApplicationCrumbs();
|
||||
|
||||
$start = new DateTime('@'.$event->getViewerDateFrom());
|
||||
$start->setTimeZone($viewer->getTimeZone());
|
||||
|
||||
$crumbs->addTextCrumb(
|
||||
$start->format('F Y'),
|
||||
'/calendar/query/month/'.$start->format('Y/m/'));
|
||||
|
||||
$crumbs->addTextCrumb(
|
||||
$start->format('D jS'),
|
||||
'/calendar/query/month/'.$start->format('Y/m/d/'));
|
||||
|
||||
$crumbs->addTextCrumb($monogram);
|
||||
$crumbs->setBorder(true);
|
||||
|
||||
|
|
Loading…
Reference in a new issue