mirror of
https://we.phorge.it/source/phorge.git
synced 2024-11-10 08:52:39 +01:00
Add more icon choices to Badges
Summary: Ref T9010. This adds more icons and lets the IconChooser handle more icons more easier. Test Plan: Test Project Icons, Badges Icons Reviewers: epriestley Reviewed By: epriestley Subscribers: Korvin Maniphest Tasks: T9006, T9010 Differential Revision: https://secure.phabricator.com/D17456
This commit is contained in:
parent
5ed90b2235
commit
1460f2b85c
2 changed files with 17 additions and 4 deletions
|
@ -15,21 +15,33 @@ final class PhabricatorBadgesIconSet
|
|||
'fa-user' => pht('Average Person'),
|
||||
'fa-bug' => pht('Ladybug'),
|
||||
'fa-users' => pht('Triplets'),
|
||||
|
||||
'fa-book' => pht('Nominomicon'),
|
||||
|
||||
'fa-rocket' => pht('Escape Route'),
|
||||
'fa-life-ring' => pht('Foam Circle'),
|
||||
'fa-birthday-cake' => pht('Cake Day'),
|
||||
|
||||
'fa-camera-retro' => pht('Leica Enthusiast'),
|
||||
'fa-beer' => pht('Liquid Lunch'),
|
||||
|
||||
'fa-gift' => pht('Free Stuff'),
|
||||
'fa-eye' => pht('Eye See You'),
|
||||
|
||||
'fa-heart' => pht('Love is Love'),
|
||||
'fa-trophy' => pht('Winner at Things'),
|
||||
'fa-umbrella' => pht('Rain Defender'),
|
||||
|
||||
'fa-graduation-cap' => pht('In Debt'),
|
||||
'fa-empire' => pht('The Empire'),
|
||||
'fa-first-order' => pht('First Order'),
|
||||
'fa-rebel' => pht('Rebel'),
|
||||
'fa-space-shuttle' => pht('Star Ship'),
|
||||
|
||||
'fa-anchor' => pht('Anchors Away'),
|
||||
'fa-code' => pht('Coder'),
|
||||
'fa-briefcase' => pht('Serious Business'),
|
||||
'fa-globe' => pht('International'),
|
||||
'fa-desktop' => pht('Glowing Rectangle'),
|
||||
|
||||
|
||||
);
|
||||
|
||||
$icons = array();
|
||||
|
|
|
@ -31,6 +31,7 @@ final class PhabricatorFileIconSetSelectController
|
|||
|
||||
$ii = 0;
|
||||
$buttons = array();
|
||||
$breakpoint = ceil(sqrt(count($set->getIcons())));
|
||||
foreach ($set->getIcons() as $icon) {
|
||||
$label = $icon->getLabel();
|
||||
|
||||
|
@ -75,7 +76,7 @@ final class PhabricatorFileIconSetSelectController
|
|||
$view,
|
||||
));
|
||||
|
||||
if ((++$ii % 4) == 0) {
|
||||
if ((++$ii % $breakpoint) == 0) {
|
||||
$buttons[] = phutil_tag('br');
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue