Changeset View
Changeset View
Standalone View
Standalone View
src/applications/almanac/controller/AlmanacBindingViewController.php
Show All 33 Lines | $header = id(new PHUIHeaderView()) | ||||
->setUser($viewer) | ->setUser($viewer) | ||||
->setHeader($title) | ->setHeader($title) | ||||
->setPolicyObject($binding); | ->setPolicyObject($binding); | ||||
$box = id(new PHUIObjectBoxView()) | $box = id(new PHUIObjectBoxView()) | ||||
->setHeader($header) | ->setHeader($header) | ||||
->addPropertyList($property_list); | ->addPropertyList($property_list); | ||||
if ($binding->getService()->getIsLocked()) { | if ($binding->getService()->isClusterService()) { | ||||
$this->addLockMessage( | $this->addClusterMessage( | ||||
$box, | $box, | ||||
pht('The service for this binding is a cluster service.'), | |||||
pht( | pht( | ||||
'This service for this binding is locked, so the binding can '. | 'The service for this binding is a cluster service. You do not '. | ||||
'have permission to manage cluster services, so this binding can '. | |||||
'not be edited.')); | 'not be edited.')); | ||||
} | } | ||||
$crumbs = $this->buildApplicationCrumbs(); | $crumbs = $this->buildApplicationCrumbs(); | ||||
$crumbs->addTextCrumb($service->getName(), $service_uri); | $crumbs->addTextCrumb($service->getName(), $service_uri); | ||||
$crumbs->addTextCrumb($title); | $crumbs->addTextCrumb($title); | ||||
$timeline = $this->buildTransactionTimeline( | $timeline = $this->buildTransactionTimeline( | ||||
▲ Show 20 Lines • Show All 64 Lines • Show Last 20 Lines |