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:
parent
62e3463ab7
commit
150a3adf2c
2 changed files with 5 additions and 6 deletions
|
@ -58,7 +58,7 @@ final class PhabricatorApplicationHarbormaster extends PhabricatorApplication {
|
|||
=> 'HarbormasterBuildableActionController',
|
||||
),
|
||||
'build/' => array(
|
||||
'(?:(?P<id>\d+)/)?' => 'HarbormasterBuildViewController',
|
||||
'(?P<id>\d+)/' => 'HarbormasterBuildViewController',
|
||||
'(?P<action>stop|resume|restart)/(?P<id>\d+)/(?:(?P<via>[^/]+)/)?'
|
||||
=> 'HarbormasterBuildActionController',
|
||||
),
|
||||
|
|
|
@ -28,14 +28,11 @@ final class HarbormasterPlanViewController
|
|||
->withObjectPHIDs(array($plan->getPHID()))
|
||||
->execute();
|
||||
|
||||
$engine = id(new PhabricatorMarkupEngine())
|
||||
->setViewer($viewer);
|
||||
|
||||
$xaction_view = id(new PhabricatorApplicationTransactionView())
|
||||
->setUser($viewer)
|
||||
->setObjectPHID($plan->getPHID())
|
||||
->setTransactions($xactions)
|
||||
->setMarkupEngine($engine);
|
||||
->setShouldTerminate(true);
|
||||
|
||||
$title = pht("Plan %d", $id);
|
||||
|
||||
|
@ -85,6 +82,8 @@ final class HarbormasterPlanViewController
|
|||
$i = 1;
|
||||
$step_list = id(new PHUIObjectItemListView())
|
||||
->setUser($viewer)
|
||||
->setNoDataString(
|
||||
pht('This build plan does not have any build steps yet.'))
|
||||
->setID($list_id);
|
||||
Javelin::initBehavior(
|
||||
'harbormaster-reorder-steps',
|
||||
|
@ -100,7 +99,7 @@ final class HarbormasterPlanViewController
|
|||
// We can't initialize the implementation. This might be because
|
||||
// it's been renamed or no longer exists.
|
||||
$item = id(new PHUIObjectItemView())
|
||||
->setObjectName("Step ".$i++)
|
||||
->setObjectName(pht('Step %d', $i++))
|
||||
->setHeader(pht('Unknown Implementation'))
|
||||
->setBarColor('red')
|
||||
->addAttribute(pht(
|
||||
|
|
Loading…
Reference in a new issue