1
0
Fork 0
mirror of https://we.phorge.it/source/phorge.git synced 2024-11-19 13:22:42 +01:00

Minor UI improvements for Harbormaster

Summary: Ref T1049. Makes some minor UI tweaks.

Test Plan: Looked at UI.

Reviewers: btrahan

Reviewed By: btrahan

Subscribers: epriestley

Maniphest Tasks: T1049

Differential Revision: https://secure.phabricator.com/D8587
This commit is contained in:
epriestley 2014-03-25 13:59:43 -07:00
parent 62e3463ab7
commit 150a3adf2c
2 changed files with 5 additions and 6 deletions

View file

@ -58,7 +58,7 @@ final class PhabricatorApplicationHarbormaster extends PhabricatorApplication {
=> 'HarbormasterBuildableActionController', => 'HarbormasterBuildableActionController',
), ),
'build/' => array( 'build/' => array(
'(?:(?P<id>\d+)/)?' => 'HarbormasterBuildViewController', '(?P<id>\d+)/' => 'HarbormasterBuildViewController',
'(?P<action>stop|resume|restart)/(?P<id>\d+)/(?:(?P<via>[^/]+)/)?' '(?P<action>stop|resume|restart)/(?P<id>\d+)/(?:(?P<via>[^/]+)/)?'
=> 'HarbormasterBuildActionController', => 'HarbormasterBuildActionController',
), ),

View file

@ -28,14 +28,11 @@ final class HarbormasterPlanViewController
->withObjectPHIDs(array($plan->getPHID())) ->withObjectPHIDs(array($plan->getPHID()))
->execute(); ->execute();
$engine = id(new PhabricatorMarkupEngine())
->setViewer($viewer);
$xaction_view = id(new PhabricatorApplicationTransactionView()) $xaction_view = id(new PhabricatorApplicationTransactionView())
->setUser($viewer) ->setUser($viewer)
->setObjectPHID($plan->getPHID()) ->setObjectPHID($plan->getPHID())
->setTransactions($xactions) ->setTransactions($xactions)
->setMarkupEngine($engine); ->setShouldTerminate(true);
$title = pht("Plan %d", $id); $title = pht("Plan %d", $id);
@ -85,6 +82,8 @@ final class HarbormasterPlanViewController
$i = 1; $i = 1;
$step_list = id(new PHUIObjectItemListView()) $step_list = id(new PHUIObjectItemListView())
->setUser($viewer) ->setUser($viewer)
->setNoDataString(
pht('This build plan does not have any build steps yet.'))
->setID($list_id); ->setID($list_id);
Javelin::initBehavior( Javelin::initBehavior(
'harbormaster-reorder-steps', 'harbormaster-reorder-steps',
@ -100,7 +99,7 @@ final class HarbormasterPlanViewController
// We can't initialize the implementation. This might be because // We can't initialize the implementation. This might be because
// it's been renamed or no longer exists. // it's been renamed or no longer exists.
$item = id(new PHUIObjectItemView()) $item = id(new PHUIObjectItemView())
->setObjectName("Step ".$i++) ->setObjectName(pht('Step %d', $i++))
->setHeader(pht('Unknown Implementation')) ->setHeader(pht('Unknown Implementation'))
->setBarColor('red') ->setBarColor('red')
->addAttribute(pht( ->addAttribute(pht(