@recaptime-dev's working patches + fork for Phorge, a community fork of Phabricator. (Upstream dev and stable branches are at upstream/main and upstream/stable respectively.) hq.recaptime.dev/wiki/Phorge
phorge phabricator
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

Add crumbs to calendar

Summary: Crumbs everywhere. Not sure how to better format the date, let me know.

Test Plan: Browse everything I can see in Calendar

Reviewers: epriestley, btrahan

Reviewed By: epriestley

CC: Korvin, epriestley, aran

Maniphest Tasks: T4440

Differential Revision: https://secure.phabricator.com/D8265

+34 -18
+5
src/applications/calendar/controller/PhabricatorCalendarBrowseController.php
··· 57 57 $month_view->addEvent($event); 58 58 } 59 59 60 + $date = new DateTime("{$year}-{$month}-01"); 61 + $crumbs = $this->buildApplicationCrumbs(); 62 + $crumbs->addTextCrumb($date->format('F Y')); 63 + 60 64 $nav = $this->buildSideNavView(); 61 65 $nav->selectFilter('/'); 62 66 $nav->appendChild( 63 67 array( 68 + $crumbs, 64 69 $this->getNoticeView(), 65 70 $month_view, 66 71 ));
+19 -3
src/applications/calendar/controller/PhabricatorCalendarController.php
··· 9 9 10 10 $nav->addLabel(pht('Calendar')); 11 11 $nav->addFilter('/', pht('View All')); 12 - $nav->addFilter('event/create/', pht('New Status')); 12 + $nav->addFilter('event/create/', pht('Create Event')); 13 13 14 14 if ($status && $status->getID()) { 15 - $nav->addFilter('event/edit/'.$status->getID().'/', pht('Edit Status')); 15 + $nav->addFilter('event/edit/'.$status->getID().'/', pht('Edit Event')); 16 16 } 17 - $nav->addFilter('event/', pht('Upcoming Statuses')); 17 + $nav->addFilter('event/', pht('Upcoming Events')); 18 18 19 19 return $nav; 20 + } 21 + 22 + public function buildApplicationMenu() { 23 + return $this->buildSideNavView()->getMenu(); 24 + } 25 + 26 + public function buildApplicationCrumbs() { 27 + $crumbs = parent::buildApplicationCrumbs(); 28 + 29 + $crumbs->addAction( 30 + id(new PHUIListItemView()) 31 + ->setName(pht('Create Event')) 32 + ->setHref($this->getApplicationURI().'event/create') 33 + ->setIcon('create')); 34 + 35 + return $crumbs; 20 36 } 21 37 22 38 }
+7
src/applications/calendar/controller/PhabricatorCalendarEventEditController.php
··· 166 166 } 167 167 $form->appendChild($submit); 168 168 169 + 170 + 169 171 $form_box = id(new PHUIObjectBoxView()) 170 172 ->setHeaderText($page_title) 171 173 ->setFormErrors($errors) ··· 174 176 $nav = $this->buildSideNavView($status); 175 177 $nav->selectFilter($filter); 176 178 179 + $crumbs = $this 180 + ->buildApplicationCrumbs() 181 + ->addTextCrumb($page_title); 182 + 177 183 $nav->appendChild( 178 184 array( 185 + $crumbs, 179 186 $form_box, 180 187 )); 181 188
-12
src/applications/calendar/controller/PhabricatorCalendarEventListController.php
··· 34 34 return $nav; 35 35 } 36 36 37 - public function buildApplicationCrumbs() { 38 - $crumbs = parent::buildApplicationCrumbs(); 39 - 40 - $crumbs->addAction( 41 - id(new PHUIListItemView()) 42 - ->setIcon('create') 43 - ->setName(pht('Create Event')) 44 - ->setHref($this->getApplicationURI().'create/')); 45 - 46 - return $crumbs; 47 - } 48 - 49 37 public function renderResultsList( 50 38 array $events, 51 39 PhabricatorSavedQuery $query) {
+1 -1
src/applications/calendar/controller/PhabricatorCalendarEventViewController.php
··· 1 1 <?php 2 2 3 3 final class PhabricatorCalendarEventViewController 4 - extends PhabricatorDashboardController { 4 + extends PhabricatorCalendarController { 5 5 6 6 private $id; 7 7
+2 -2
src/applications/calendar/storage/PhabricatorCalendarEvent.php
··· 48 48 public function getTerseSummary(PhabricatorUser $viewer) { 49 49 $until = phabricator_date($this->dateTo, $viewer); 50 50 if ($this->status == PhabricatorCalendarEvent::STATUS_SPORADIC) { 51 - return 'Sporadic until '.$until; 51 + return pht('Sporadic until %s', $until); 52 52 } else { 53 - return 'Away until '.$until; 53 + return pht('Away until %s', $until); 54 54 } 55 55 } 56 56