mirror of
https://we.phorge.it/source/phorge.git
synced 2024-11-28 09:42:41 +01:00
ffadf64751
Summary: Basic plumbing for Badges application. - You can make Badges. - You can look at a list of them. - They can be edited. - They can be assigned to people. - You can revoke them from people. - You can subscribe to them. Test Plan: Make Badges with various options. Give them to people. Take them away from people. Reviewers: lpriestley, epriestley Reviewed By: epriestley Subscribers: tycho.tatitscheff, johnny-bit, epriestley, Korvin Maniphest Tasks: T6526 Differential Revision: https://secure.phabricator.com/D13626
46 lines
955 B
PHP
46 lines
955 B
PHP
<?php
|
|
|
|
final class PhabricatorTokensApplication extends PhabricatorApplication {
|
|
|
|
public function getName() {
|
|
return pht('Tokens');
|
|
}
|
|
|
|
public function getBaseURI() {
|
|
return '/token/';
|
|
}
|
|
|
|
public function getFontIcon() {
|
|
return 'fa-thumbs-up';
|
|
}
|
|
|
|
public function getTitleGlyph() {
|
|
return "\xE2\x99\xA6";
|
|
}
|
|
|
|
public function getShortDescription() {
|
|
return pht('Award and Acquire Trinkets');
|
|
}
|
|
|
|
public function getApplicationGroup() {
|
|
return self::GROUP_UTILITIES;
|
|
}
|
|
|
|
public function getRoutes() {
|
|
return array(
|
|
'/token/' => array(
|
|
'' => 'PhabricatorTokenGivenController',
|
|
'given/' => 'PhabricatorTokenGivenController',
|
|
'give/(?<phid>[^/]+)/' => 'PhabricatorTokenGiveController',
|
|
'leaders/' => 'PhabricatorTokenLeaderController',
|
|
),
|
|
);
|
|
}
|
|
|
|
public function getEventListeners() {
|
|
return array(
|
|
new PhabricatorTokenUIEventListener(),
|
|
);
|
|
}
|
|
|
|
}
|