mirror of
https://we.phorge.it/source/phorge.git
synced 2024-11-24 15:52:41 +01:00
fe5cd4ca2c
Summary: Normalizes all `setFontIcon` calls to `setIcon`. Test Plan: UIExamples, Almanac, Apps list, etc. Reviewers: epriestley Reviewed By: epriestley Subscribers: Korvin, hach-que, yelirekim Differential Revision: https://secure.phabricator.com/D15129
75 lines
1.9 KiB
PHP
75 lines
1.9 KiB
PHP
<?php
|
|
|
|
final class PhabricatorBadgesApplication extends PhabricatorApplication {
|
|
|
|
public function getName() {
|
|
return pht('Badges');
|
|
}
|
|
|
|
public function getBaseURI() {
|
|
return '/badges/';
|
|
}
|
|
|
|
public function getShortDescription() {
|
|
return pht('Achievements and Notority');
|
|
}
|
|
|
|
public function getIcon() {
|
|
return 'fa-trophy';
|
|
}
|
|
|
|
public function getFlavorText() {
|
|
return pht('Build self esteem through gamification.');
|
|
}
|
|
|
|
public function getApplicationGroup() {
|
|
return self::GROUP_UTILITIES;
|
|
}
|
|
|
|
public function canUninstall() {
|
|
return true;
|
|
}
|
|
|
|
public function isPrototype() {
|
|
return true;
|
|
}
|
|
|
|
public function getRoutes() {
|
|
return array(
|
|
'/badges/' => array(
|
|
'(?:query/(?P<queryKey>[^/]+)/)?'
|
|
=> 'PhabricatorBadgesListController',
|
|
'create/'
|
|
=> 'PhabricatorBadgesEditController',
|
|
'comment/(?P<id>[1-9]\d*)/'
|
|
=> 'PhabricatorBadgesCommentController',
|
|
'edit/(?:(?P<id>\d+)/)?'
|
|
=> 'PhabricatorBadgesEditController',
|
|
'archive/(?:(?P<id>\d+)/)?'
|
|
=> 'PhabricatorBadgesArchiveController',
|
|
'view/(?:(?P<id>\d+)/)?'
|
|
=> 'PhabricatorBadgesViewController',
|
|
'recipients/(?P<id>[1-9]\d*)/'
|
|
=> 'PhabricatorBadgesEditRecipientsController',
|
|
'recipients/(?P<id>[1-9]\d*)/remove/'
|
|
=> 'PhabricatorBadgesRemoveRecipientsController',
|
|
|
|
),
|
|
);
|
|
}
|
|
|
|
protected function getCustomCapabilities() {
|
|
return array(
|
|
PhabricatorBadgesCreateCapability::CAPABILITY => array(
|
|
'default' => PhabricatorPolicies::POLICY_ADMIN,
|
|
'caption' => pht('Default create policy for badges.'),
|
|
),
|
|
PhabricatorBadgesDefaultEditCapability::CAPABILITY => array(
|
|
'default' => PhabricatorPolicies::POLICY_ADMIN,
|
|
'caption' => pht('Default edit policy for badges.'),
|
|
'template' => PhabricatorBadgesPHIDType::TYPECONST,
|
|
),
|
|
);
|
|
}
|
|
|
|
}
|