Add some more builtin project images
Summary: Moves over some of the icons we build for SAAS that can be useful for projects to. Also make builtin list dynamic. Test Plan: Edit a project image, select a cool sword. Reviewers: epriestley Reviewed By: epriestley Subscribers: Korvin Differential Revision: https://secure.phabricator.com/D18297
BIN
resources/builtin/projects/v3/contact.png
Normal file
After Width: | Height: | Size: 6.7 KiB |
BIN
resources/builtin/projects/v3/gears.png
Normal file
After Width: | Height: | Size: 16 KiB |
BIN
resources/builtin/projects/v3/gold.png
Normal file
After Width: | Height: | Size: 6.9 KiB |
BIN
resources/builtin/projects/v3/home.png
Normal file
After Width: | Height: | Size: 8.6 KiB |
BIN
resources/builtin/projects/v3/manage.png
Normal file
After Width: | Height: | Size: 6.1 KiB |
BIN
resources/builtin/projects/v3/silver.png
Normal file
After Width: | Height: | Size: 5.9 KiB |
BIN
resources/builtin/projects/v3/support.png
Normal file
After Width: | Height: | Size: 4.6 KiB |
BIN
resources/builtin/projects/v3/sword.png
Normal file
After Width: | Height: | Size: 6.6 KiB |
|
@ -124,38 +124,16 @@ final class PhabricatorProjectEditPictureController
|
|||
}
|
||||
}
|
||||
|
||||
$builtins = array(
|
||||
'projects/v3/book.png',
|
||||
'projects/v3/bug.png',
|
||||
'projects/v3/calendar.png',
|
||||
'projects/v3/clipboard.png',
|
||||
'projects/v3/cloud.png',
|
||||
'projects/v3/creditcard.png',
|
||||
'projects/v3/database.png',
|
||||
'projects/v3/desktop.png',
|
||||
'projects/v3/experimental.png',
|
||||
'projects/v3/flag.png',
|
||||
'projects/v3/folder.png',
|
||||
'projects/v3/lightbulb.png',
|
||||
'projects/v3/lock.png',
|
||||
'projects/v3/mail.png',
|
||||
'projects/v3/marker.png',
|
||||
'projects/v3/mobile.png',
|
||||
'projects/v3/organization.png',
|
||||
'projects/v3/people.png',
|
||||
'projects/v3/piechart.png',
|
||||
'projects/v3/robot.png',
|
||||
'projects/v3/rocket.png',
|
||||
'projects/v3/servers.png',
|
||||
'projects/v3/sitemap.png',
|
||||
'projects/v3/tag.png',
|
||||
'projects/v3/trash.png',
|
||||
'projects/v3/truck.png',
|
||||
'projects/v3/umbrella.png',
|
||||
);
|
||||
$root = dirname(phutil_get_library_root('phabricator'));
|
||||
$root = $root.'/resources/builtin/projects/v3/';
|
||||
|
||||
$builtins = id(new FileFinder($root))
|
||||
->withType('f')
|
||||
->withFollowSymlinks(true)
|
||||
->find();
|
||||
|
||||
foreach ($builtins as $builtin) {
|
||||
$file = PhabricatorFile::loadBuiltin($viewer, $builtin);
|
||||
$file = PhabricatorFile::loadBuiltin($viewer, 'projects/v3/'.$builtin);
|
||||
$images[$file->getPHID()] = array(
|
||||
'uri' => $file->getBestURI(),
|
||||
'tip' => pht('Builtin Image'),
|
||||
|
|