Add a "Mark All Read" button for notifications

Summary: Adds a button to mark everything as read.

Test Plan: Clicked button.

Reviewers: btrahan, jungejason, vrana

Reviewed By: btrahan

CC: aran

Maniphest Tasks: T974

Differential Revision: https://secure.phabricator.com/D2812
This commit is contained in:
epriestley
2012-06-20 13:51:19 -07:00
parent 5e184ee593
commit 083cd5fd9d
4 changed files with 62 additions and 0 deletions

View File

@@ -43,6 +43,15 @@ final class PhabricatorNotificationListController
$panel = new AphrontPanelView();
$panel->setHeader('Notifications');
$panel->addButton(
javelin_render_tag(
'a',
array(
'href' => '/notification/clear/',
'class' => 'button',
'sigil' => 'workflow',
),
'Mark All Read'));
$panel->appendChild($view);
$panel->appendChild($pager);