Changeset View
Changeset View
Standalone View
Standalone View
src/applications/phragment/controller/PhragmentBrowseController.php
| Show First 20 Lines • Show All 72 Lines • ▼ Show 20 Lines | foreach ($fragments as $fragment) { | ||||
| $item->addAttribute(pht( | $item->addAttribute(pht( | ||||
| 'Latest Version %s', | 'Latest Version %s', | ||||
| $fragment->getLatestVersion()->getSequence())); | $fragment->getLatestVersion()->getSequence())); | ||||
| if ($fragment->isDeleted()) { | if ($fragment->isDeleted()) { | ||||
| $item->setDisabled(true); | $item->setDisabled(true); | ||||
| $item->addAttribute(pht('Deleted')); | $item->addAttribute(pht('Deleted')); | ||||
| } | } | ||||
| } else { | } else { | ||||
| $item->addAttribute('Directory'); | $item->addAttribute(pht('Directory')); | ||||
| } | } | ||||
| $list->addItem($item); | $list->addItem($item); | ||||
| } | } | ||||
| return $this->buildApplicationPage( | return $this->buildApplicationPage( | ||||
| array( | array( | ||||
| $crumbs, | $crumbs, | ||||
| $this->renderConfigurationWarningIfRequired(), | $this->renderConfigurationWarningIfRequired(), | ||||
| Show All 9 Lines | |||||