Differential D20402 Diff 48691 src/applications/dashboard/layoutconfig/PhabricatorDashboardLayoutConfig.php
Changeset View
Changeset View
Standalone View
Standalone View
src/applications/dashboard/layoutconfig/PhabricatorDashboardLayoutConfig.php
| Show First 20 Lines • Show All 101 Lines • ▼ Show 20 Lines | switch ($this->getLayoutMode()) { | ||||
| break; | break; | ||||
| } | } | ||||
| if ($grippable) { | if ($grippable) { | ||||
| $class .= ' grippable'; | $class .= ' grippable'; | ||||
| } | } | ||||
| return $class; | return $class; | ||||
| } | } | ||||
| public function isMultiColumnLayout() { | |||||
| return $this->getLayoutMode() != self::MODE_FULL; | |||||
| } | |||||
| public function getColumnSelectOptions() { | |||||
epriestley: This also has no callsites. | |||||
| $options = array(); | |||||
| switch ($this->getLayoutMode()) { | |||||
| case self::MODE_HALF_AND_HALF: | |||||
| case self::MODE_THIRD_AND_THIRDS: | |||||
| case self::MODE_THIRDS_AND_THIRD: | |||||
| return array( | |||||
| 0 => pht('Left'), | |||||
| 1 => pht('Right'), | |||||
| ); | |||||
| break; | |||||
| case self::MODE_FULL: | |||||
| throw new Exception(pht('There is only one column in mode full.')); | |||||
| break; | |||||
| default: | |||||
| throw new Exception(pht('Unknown layout mode!')); | |||||
| break; | |||||
| } | |||||
| return $options; | |||||
| } | |||||
| public static function getLayoutModeSelectOptions() { | public static function getLayoutModeSelectOptions() { | ||||
| return array( | return array( | ||||
| self::MODE_FULL => pht('One full-width column'), | self::MODE_FULL => pht('One full-width column'), | ||||
| self::MODE_HALF_AND_HALF => pht('Two columns, 1/2 and 1/2'), | self::MODE_HALF_AND_HALF => pht('Two columns, 1/2 and 1/2'), | ||||
| self::MODE_THIRD_AND_THIRDS => pht('Two columns, 1/3 and 2/3'), | self::MODE_THIRD_AND_THIRDS => pht('Two columns, 1/3 and 2/3'), | ||||
| self::MODE_THIRDS_AND_THIRD => pht('Two columns, 2/3 and 1/3'), | self::MODE_THIRDS_AND_THIRD => pht('Two columns, 2/3 and 1/3'), | ||||
| ); | ); | ||||
| } | } | ||||
| Show All 20 Lines | |||||
This also has no callsites.