Changeset View
Changeset View
Standalone View
Standalone View
src/applications/base/PhabricatorApplication.php
| Show First 20 Lines • Show All 282 Lines • ▼ Show 20 Lines | /* -( UI Integration )----------------------------------------------------- */ | ||||
| * @param PhabricatorUser Viewing user. | * @param PhabricatorUser Viewing user. | ||||
| * @return list<PhabricatorApplicationStatusView> Application status elements. | * @return list<PhabricatorApplicationStatusView> Application status elements. | ||||
| * @task ui | * @task ui | ||||
| */ | */ | ||||
| public function loadStatus(PhabricatorUser $user) { | public function loadStatus(PhabricatorUser $user) { | ||||
| return array(); | return array(); | ||||
| } | } | ||||
| /** | |||||
| * @return string | |||||
| * @task ui | |||||
| */ | |||||
| final public static function formatStatusCount( | |||||
| $count, | |||||
| $limit_string = '%s', | |||||
| $base_string = '%d') { | |||||
| if ($count == self::MAX_STATUS_ITEMS) { | |||||
| $count_str = pht($limit_string, ($count - 1).'+'); | |||||
| } else { | |||||
| $count_str = pht($base_string, $count); | |||||
| } | |||||
| return $count_str; | |||||
| } | |||||
| /** | /** | ||||
| * You can provide an optional piece of flavor text for the application. This | * You can provide an optional piece of flavor text for the application. This | ||||
| * is currently rendered in application launch views if the application has no | * is currently rendered in application launch views if the application has no | ||||
| * status elements. | * status elements. | ||||
| * | * | ||||
| * @return string|null Flavor text. | * @return string|null Flavor text. | ||||
| * @task ui | * @task ui | ||||
| ▲ Show 20 Lines • Show All 340 Lines • Show Last 20 Lines | |||||