@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.

Adds Remarkup Rendering to Calendar Events' Descriptions.

Summary: Closes T8032

Test Plan: Verify that when editing a calendar event's description, there is a UI bar helping with adding markup to the description. Also verify that markup is displayed correctly on the event page once the event has been updated.

Reviewers: lpriestley, #blessed_reviewers, epriestley

Reviewed By: lpriestley, #blessed_reviewers, epriestley

Subscribers: epriestley, Korvin

Maniphest Tasks: T8032

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

authored by

Paul Kassianik and committed by
epriestley
40851e5b 69d12f64

+16 -6
+3 -2
src/applications/calendar/controller/PhabricatorCalendarEventEditController.php
··· 437 437 ->setValue($end_disabled); 438 438 } 439 439 440 - $description = id(new AphrontFormTextAreaControl()) 440 + $description = id(new PhabricatorRemarkupControl()) 441 441 ->setLabel(pht('Description')) 442 442 ->setName('description') 443 - ->setValue($description); 443 + ->setValue($description) 444 + ->setUser($viewer); 444 445 445 446 $view_policies = id(new AphrontFormPolicyControl()) 446 447 ->setUser($viewer)
+13 -4
src/applications/calendar/controller/PhabricatorCalendarEventViewController.php
··· 362 362 pht('Icon'), 363 363 $icon_display); 364 364 365 - $properties->addSectionHeader( 366 - pht('Description'), 367 - PHUIPropertyListView::ICON_SUMMARY); 368 - $properties->addTextContent($event->getDescription()); 365 + if (strlen($event->getDescription())) { 366 + 367 + $description = PhabricatorMarkupEngine::renderOneObject( 368 + id(new PhabricatorMarkupOneOff())->setContent($event->getDescription()), 369 + 'default', 370 + $viewer); 371 + 372 + $properties->addSectionHeader( 373 + pht('Description'), 374 + PHUIPropertyListView::ICON_SUMMARY); 375 + 376 + $properties->addTextContent($description); 377 + } 369 378 370 379 return $properties; 371 380 }