Page Menu
Home
Phabricator
Search
Configure Global Search
Log In
Files
F15485518
D14323.id34585.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
1 KB
Referenced Files
None
Subscribers
None
D14323.id34585.diff
View Options
diff --git a/src/applications/config/module/PhabricatorConfigPHIDModule.php b/src/applications/config/module/PhabricatorConfigPHIDModule.php
--- a/src/applications/config/module/PhabricatorConfigPHIDModule.php
+++ b/src/applications/config/module/PhabricatorConfigPHIDModule.php
@@ -18,9 +18,35 @@
$rows = array();
foreach ($types as $key => $type) {
+ $class_name = $type->getPHIDTypeApplicationClass();
+ if ($class_name !== null) {
+ $app = PhabricatorApplication::getByClass($class_name);
+ $app_name = $app->getName();
+
+ $icon = $app->getFontIcon();
+ if ($icon) {
+ $app_icon = id(new PHUIIconView())->setIconFont($icon);
+ } else {
+ $app_icon = null;
+ }
+ } else {
+ $app_name = null;
+ $app_icon = null;
+ }
+
+ $icon = $type->getTypeIcon();
+ if ($icon) {
+ $type_icon = id(new PHUIIconView())->setIconFont($icon);
+ } else {
+ $type_icon = null;
+ }
+
$rows[] = array(
$type->getTypeConstant(),
get_class($type),
+ $app_icon,
+ $app_name,
+ $type_icon,
$type->getTypeName(),
);
}
@@ -30,12 +56,18 @@
array(
pht('Constant'),
pht('Class'),
+ null,
+ pht('Application'),
+ null,
pht('Name'),
))
->setColumnClasses(
array(
null,
'pri',
+ 'icon',
+ null,
+ 'icon',
'wide',
));
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Fri, Apr 11, 12:18 AM (1 w, 5 d ago)
Storage Engine
blob
Storage Format
Encrypted (AES-256-CBC)
Storage Handle
7383700
Default Alt Text
D14323.id34585.diff (1 KB)
Attached To
Mode
D14323: Show applications and icons for PHID types in config table
Attached
Detach File
Event Timeline
Log In to Comment