Changeset View
Changeset View
Standalone View
Standalone View
src/applications/settings/panel/PhabricatorTokensSettingsPanel.php
Show First 20 Lines • Show All 65 Lines • ▼ Show 20 Lines | $table->setHeaders( | ||||
)); | )); | ||||
$table->setColumnClasses( | $table->setColumnClasses( | ||||
array( | array( | ||||
'wide', | 'wide', | ||||
'right', | 'right', | ||||
'action', | 'action', | ||||
)); | )); | ||||
$terminate_button = id(new PHUIButtonView()) | $button = id(new PHUIButtonView()) | ||||
->setTag('a') | |||||
->setIcon('fa-warning') | |||||
->setText(pht('Revoke All')) | ->setText(pht('Revoke All')) | ||||
->setHref('/auth/token/revoke/all/') | ->setHref('/auth/token/revoke/all/') | ||||
->setTag('a') | |||||
->setWorkflow(true) | ->setWorkflow(true) | ||||
->setIcon('fa-exclamation-triangle'); | ->setColor(PHUIButtonView::RED); | ||||
$header = id(new PHUIHeaderView()) | |||||
->setHeader(pht('Temporary Tokens')) | |||||
->addActionLink($terminate_button); | |||||
$panel = id(new PHUIObjectBoxView()) | |||||
->setHeader($header) | |||||
->setBackground(PHUIObjectBoxView::BLUE_PROPERTY) | |||||
->setTable($table); | |||||
return $panel; | return $this->newBox(pht('Temporary Tokens'), $table, array($button)); | ||||
} | } | ||||
} | } |