Differential D19839 Diff 47392 src/applications/diffusion/management/DiffusionRepositoryLimitsManagementPanel.php
Changeset View
Changeset View
Standalone View
Standalone View
src/applications/diffusion/management/DiffusionRepositoryLimitsManagementPanel.php
Show All 32 Lines | if ($any_limit) { | ||||
return 'fa-signal grey'; | return 'fa-signal grey'; | ||||
} | } | ||||
} | } | ||||
protected function getEditEngineFieldKeys() { | protected function getEditEngineFieldKeys() { | ||||
return array( | return array( | ||||
'filesizeLimit', | 'filesizeLimit', | ||||
'copyTimeLimit', | 'copyTimeLimit', | ||||
'touchLimit', | |||||
amckinley: `touchedPathsLimit`? | |||||
); | ); | ||||
} | } | ||||
public function buildManagementPanelCurtain() { | public function buildManagementPanelCurtain() { | ||||
$repository = $this->getRepository(); | $repository = $this->getRepository(); | ||||
$viewer = $this->getViewer(); | $viewer = $this->getViewer(); | ||||
$action_list = $this->newActionList(); | $action_list = $this->newActionList(); | ||||
▲ Show 20 Lines • Show All 41 Lines • ▼ Show 20 Lines | if ($copy_limit) { | ||||
$copy_display = pht( | $copy_display = pht( | ||||
'Default (%s Seconds)', | 'Default (%s Seconds)', | ||||
new PhutilNumber($copy_default)); | new PhutilNumber($copy_default)); | ||||
$copy_display = phutil_tag('em', array(), $copy_display); | $copy_display = phutil_tag('em', array(), $copy_display); | ||||
} | } | ||||
$view->addProperty(pht('Clone/Fetch Timeout'), $copy_display); | $view->addProperty(pht('Clone/Fetch Timeout'), $copy_display); | ||||
$touch_limit = $repository->getTouchLimit(); | |||||
if ($touch_limit) { | |||||
$touch_display = pht('%s Paths', new PhutilNumber($touch_limit)); | |||||
} else { | |||||
$touch_display = pht('Unlimited'); | |||||
$touch_display = phutil_tag('em', array(), $touch_display); | |||||
} | |||||
$view->addProperty(pht('Touched Paths Limit'), $touch_display); | |||||
return $this->newBox(pht('Limits'), $view); | return $this->newBox(pht('Limits'), $view); | ||||
} | } | ||||
} | } |
touchedPathsLimit?