diff --git a/application/controllers/ShowController.php b/application/controllers/ShowController.php index 92f1b018..117dc82f 100644 --- a/application/controllers/ShowController.php +++ b/application/controllers/ShowController.php @@ -100,7 +100,16 @@ class ShowController extends ActionController protected function showObject($object) { - $this->view->output = '
' . $this->view->escape(
+        $error = '';
+        if ($object->disabled === 'y') {
+            $error = '

' + . $this->translate('This object will not be deployed as it has been disabled') + . '

'; + } + + $this->view->output = $error . ' disabled === 'y' ? ' class="disabled"' : ''). +'>' . $this->view->escape( (string) $object ) . '
'; }