Differential D20154 Diff 48161 src/applications/notification/query/PhabricatorNotificationSearchEngine.php
Changeset View
Changeset View
Standalone View
Standalone View
src/applications/notification/query/PhabricatorNotificationSearchEngine.php
Show First 20 Lines • Show All 105 Lines • ▼ Show 20 Lines | protected function renderResultList( | ||||
} | } | ||||
$clear_uri = id(new PhutilURI('/notification/clear/')); | $clear_uri = id(new PhutilURI('/notification/clear/')); | ||||
if ($notifications) { | if ($notifications) { | ||||
$builder = id(new PhabricatorNotificationBuilder($notifications)) | $builder = id(new PhabricatorNotificationBuilder($notifications)) | ||||
->setUser($viewer); | ->setUser($viewer); | ||||
$view = $builder->buildView(); | $view = $builder->buildView(); | ||||
$clear_uri->setQueryParam( | $clear_uri->replaceQueryParam( | ||||
'chronoKey', | 'chronoKey', | ||||
head($notifications)->getChronologicalKey()); | head($notifications)->getChronologicalKey()); | ||||
} else { | } else { | ||||
$view = phutil_tag_div( | $view = phutil_tag_div( | ||||
'phabricator-notification no-notifications', | 'phabricator-notification no-notifications', | ||||
$no_data); | $no_data); | ||||
$button->setDisabled(true); | $button->setDisabled(true); | ||||
} | } | ||||
Show All 19 Lines |