Changeset View
Changeset View
Standalone View
Standalone View
src/applications/harbormaster/view/HarbormasterUnitPropertyView.php
Show First 20 Lines • Show All 66 Lines • ▼ Show 20 Lines | foreach ($display_messages as $message) { | ||||
$duration = $message->getDuration(); | $duration = $message->getDuration(); | ||||
if ($duration !== null) { | if ($duration !== null) { | ||||
$any_duration = true; | $any_duration = true; | ||||
$duration = pht('%s ms', new PhutilNumber((int)(1000 * $duration))); | $duration = pht('%s ms', new PhutilNumber((int)(1000 * $duration))); | ||||
} | } | ||||
$name = $message->getUnitMessageDisplayName(); | $name = $message->getUnitMessageDisplayName(); | ||||
$id = $message->getID(); | $uri = $message->getURI(); | ||||
if ($id) { | if ($uri) { | ||||
$name = phutil_tag( | $name = phutil_tag( | ||||
'a', | 'a', | ||||
array( | array( | ||||
'href' => "/harbormaster/unit/view/{$id}/", | 'href' => $uri, | ||||
), | ), | ||||
$name); | $name); | ||||
} | } | ||||
$name = array( | $name = array( | ||||
$name, | $name, | ||||
$message->newUnitMessageDetailsView($viewer, true), | $message->newUnitMessageDetailsView($viewer, true), | ||||
); | ); | ||||
▲ Show 20 Lines • Show All 68 Lines • Show Last 20 Lines |