Changeset View
Changeset View
Standalone View
Standalone View
src/applications/herald/query/HeraldRuleSearchEngine.php
Show First 20 Lines • Show All 180 Lines • ▼ Show 20 Lines | foreach ($rules as $rule) { | ||||
->setHref($this->getApplicationURI("rule/{$id}/")); | ->setHref($this->getApplicationURI("rule/{$id}/")); | ||||
if ($rule->isPersonalRule()) { | if ($rule->isPersonalRule()) { | ||||
$item->addIcon('fa-user', pht('Personal Rule')); | $item->addIcon('fa-user', pht('Personal Rule')); | ||||
$item->addByline( | $item->addByline( | ||||
pht( | pht( | ||||
'Authored by %s', | 'Authored by %s', | ||||
$handles[$rule->getAuthorPHID()]->renderLink())); | $handles[$rule->getAuthorPHID()]->renderLink())); | ||||
} else if ($rule->isObjectRule()) { | |||||
$item->addIcon('fa-briefcase', pht('Object Rule')); | |||||
} else { | } else { | ||||
$item->addIcon('fa-globe', pht('Global Rule')); | $item->addIcon('fa-globe', pht('Global Rule')); | ||||
} | } | ||||
if ($rule->getIsDisabled()) { | if ($rule->getIsDisabled()) { | ||||
$item->setDisabled(true); | $item->setDisabled(true); | ||||
$item->addIcon('fa-lock grey', pht('Disabled')); | $item->addIcon('fa-lock grey', pht('Disabled')); | ||||
} | } | ||||
Show All 17 Lines |