Page MenuHomePhabricator

D7373.id16592.diff
No OneTemporary

D7373.id16592.diff

Index: src/applications/project/controller/PhabricatorProjectProfileController.php
===================================================================
--- src/applications/project/controller/PhabricatorProjectProfileController.php
+++ src/applications/project/controller/PhabricatorProjectProfileController.php
@@ -59,11 +59,19 @@
$header = id(new PHUIHeaderView())
->setHeader($project->getName())
- ->setSubheader(phutil_utf8_shorten($profile->getBlurb(), 1024))
+ ->setUser($user)
+ ->setPolicyObject($project)
->setImage($picture);
+ if ($project->getStatus() == PhabricatorProjectStatus::STATUS_ACTIVE) {
+ $header->setStatus('open', 'green', pht('Active'));
+ } else {
+ $header->setStatus('open', 'red', pht('Archived'));
+ }
+
+
$actions = $this->buildActionListView($project);
- $properties = $this->buildPropertyListView($project, $actions);
+ $properties = $this->buildPropertyListView($project, $profile, $actions);
$crumbs = $this->buildApplicationCrumbs();
$crumbs->addCrumb(
@@ -253,6 +261,7 @@
private function buildPropertyListView(
PhabricatorProject $project,
+ PhabricatorProjectProfile $profile,
PhabricatorActionListView $actions) {
$request = $this->getRequest();
$viewer = $request->getUser();
@@ -266,6 +275,13 @@
pht('Created'),
phabricator_datetime($project->getDateCreated(), $viewer));
+ $view->addSectionHeader(pht('Description'));
+ $view->addTextContent(
+ PhabricatorMarkupEngine::renderOneObject(
+ id(new PhabricatorMarkupOneOff())->setContent($profile->getBlurb()),
+ 'default',
+ $viewer));
+
return $view;
}
Index: src/applications/project/controller/PhabricatorProjectProfileEditController.php
===================================================================
--- src/applications/project/controller/PhabricatorProjectProfileEditController.php
+++ src/applications/project/controller/PhabricatorProjectProfileEditController.php
@@ -127,8 +127,8 @@
->setOptions($options)
->setValue($project->getStatus()))
->appendChild(
- id(new AphrontFormTextAreaControl())
- ->setLabel(pht('Blurb'))
+ id(new PhabricatorRemarkupControl())
+ ->setLabel(pht('Description'))
->setName('blurb')
->setValue($profile->getBlurb()))
->appendChild(

File Metadata

Mime Type
text/plain
Expires
Oct 15 2024, 4:12 AM (5 w, 1 d ago)
Storage Engine
blob
Storage Format
Encrypted (AES-256-CBC)
Storage Handle
6711295
Default Alt Text
D7373.id16592.diff (2 KB)

Event Timeline