Page Menu
Home
Phabricator
Search
Configure Global Search
Log In
Files
F89615
D7373.id16592.diff
All Users
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
2 KB
Referenced Files
None
Subscribers
None
D7373.id16592.diff
View Options
diff --git a/src/applications/project/controller/PhabricatorProjectProfileController.php b/src/applications/project/controller/PhabricatorProjectProfileController.php
--- a/src/applications/project/controller/PhabricatorProjectProfileController.php
+++ b/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;
}
diff --git a/src/applications/project/controller/PhabricatorProjectProfileEditController.php b/src/applications/project/controller/PhabricatorProjectProfileEditController.php
--- a/src/applications/project/controller/PhabricatorProjectProfileEditController.php
+++ b/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
Details
Attached
Mime Type
text/x-diff
Storage Engine
amazon-s3
Storage Format
Raw Data
Storage Handle
phabricator/6q/2t/4daez4nfkz6eeedf
Default Alt Text
D7373.id16592.diff (2 KB)
Attached To
Mode
D7373: Shuffle project information around on detail page
Attached
Detach File
Event Timeline
Log In to Comment