Changeset View
Changeset View
Standalone View
Standalone View
src/applications/diffusion/view/DiffusionEmptyResultView.php
| Show All 34 Lines | switch ($reason) { | ||||
| $body = pht('This path does not exist anywhere.'); | $body = pht('This path does not exist anywhere.'); | ||||
| $severity = PHUIInfoView::SEVERITY_ERROR; | $severity = PHUIInfoView::SEVERITY_ERROR; | ||||
| break; | break; | ||||
| case DiffusionBrowseResultSet::REASON_IS_EMPTY: | case DiffusionBrowseResultSet::REASON_IS_EMPTY: | ||||
| $title = pht('Empty Directory'); | $title = pht('Empty Directory'); | ||||
| $body = pht('This path was an empty directory at %s.', $commit); | $body = pht('This path was an empty directory at %s.', $commit); | ||||
| $severity = PHUIInfoView::SEVERITY_NOTICE; | $severity = PHUIInfoView::SEVERITY_NOTICE; | ||||
| break; | break; | ||||
| case DiffusionBrowseResultSet::REASON_IS_SUBMODULE: | |||||
| $title = pht('Submodule'); | |||||
| // TODO: We could improve this, but it is normally difficult to | |||||
| // reach this page for a submodule. | |||||
| $body = pht('This path was a submodule at %s.', $commit); | |||||
| $severity = PHUIInfoView::SEVERITY_NOTICE; | |||||
| break; | |||||
| case DiffusionBrowseResultSet::REASON_IS_DELETED: | case DiffusionBrowseResultSet::REASON_IS_DELETED: | ||||
| $deleted = $this->browseResultSet->getDeletedAtCommit(); | $deleted = $this->browseResultSet->getDeletedAtCommit(); | ||||
| $existed = $this->browseResultSet->getExistedAtCommit(); | $existed = $this->browseResultSet->getExistedAtCommit(); | ||||
| $existed_text = $repository->formatCommitName($existed); | $existed_text = $repository->formatCommitName($existed); | ||||
| $existed_href = $drequest->generateURI( | $existed_href = $drequest->generateURI( | ||||
| array( | array( | ||||
| 'action' => 'browse', | 'action' => 'browse', | ||||
| ▲ Show 20 Lines • Show All 47 Lines • Show Last 20 Lines | |||||