From 2c5c6f591592310b58b8a8fb967afc28bf202be5 Mon Sep 17 00:00:00 2001 From: Chad Little Date: Thu, 14 Feb 2013 13:55:48 -0800 Subject: [PATCH] Fix layout when no project blurb exists. Summary: If no description, just move other attributes up. Test Plan: Add a Project with no description, layout looks normal now. Reviewers: epriestley, btrahan Reviewed By: epriestley CC: aran, Korvin Differential Revision: https://secure.phabricator.com/D4962 --- .../controller/PhabricatorProjectListController.php | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/src/applications/project/controller/PhabricatorProjectListController.php b/src/applications/project/controller/PhabricatorProjectListController.php index ce4a53e98c..ccad9e6169 100644 --- a/src/applications/project/controller/PhabricatorProjectListController.php +++ b/src/applications/project/controller/PhabricatorProjectListController.php @@ -114,10 +114,12 @@ final class PhabricatorProjectListController ->setHeader($row[0]) ->setHref($row[1]) ->addIcon($row[3], $row[2]) - ->addIcon('edit', pht('Edit Project'), $row[7]) - ->addAttribute($row[4]) - ->addAttribute($row[5]) - ->addAttribute($row[6]); + ->addIcon('edit', pht('Edit Project'), $row[7]); + if ($row[4]) { + $item->addAttribute($row[4]); + } + $item->addAttribute($row[5]); + $item->addAttribute($row[6]); $list->addItem($item); }