Differential D21669 Diff 51572 src/applications/diffusion/management/DiffusionRepositoryStorageManagementPanel.php
Changeset View
Changeset View
Standalone View
Standalone View
src/applications/diffusion/management/DiffusionRepositoryStorageManagementPanel.php
Show First 20 Lines • Show All 184 Lines • ▼ Show 20 Lines | if ($service) { | ||||
try { | try { | ||||
$write_properties = phutil_json_decode($write_properties); | $write_properties = phutil_json_decode($write_properties); | ||||
} catch (Exception $ex) { | } catch (Exception $ex) { | ||||
$write_properties = null; | $write_properties = null; | ||||
} | } | ||||
} | } | ||||
} | } | ||||
$last_writer = null; | |||||
$writer_epoch = null; | |||||
if ($write_properties) { | if ($write_properties) { | ||||
$writer_phid = idx($write_properties, 'userPHID'); | $writer_phid = idx($write_properties, 'userPHID'); | ||||
if ($writer_phid) { | |||||
$last_writer = $viewer->renderHandle($writer_phid); | $last_writer = $viewer->renderHandle($writer_phid); | ||||
} | |||||
$writer_epoch = idx($write_properties, 'epoch'); | $writer_epoch = idx($write_properties, 'epoch'); | ||||
if ($writer_epoch) { | |||||
$writer_epoch = phabricator_datetime($writer_epoch, $viewer); | $writer_epoch = phabricator_datetime($writer_epoch, $viewer); | ||||
} else { | } | ||||
$last_writer = null; | |||||
$writer_epoch = null; | |||||
} | } | ||||
$rows[] = array( | $rows[] = array( | ||||
$binding_icon, | $binding_icon, | ||||
phutil_tag( | phutil_tag( | ||||
'a', | 'a', | ||||
array( | array( | ||||
'href' => $device->getURI(), | 'href' => $device->getURI(), | ||||
▲ Show 20 Lines • Show All 160 Lines • Show Last 20 Lines |