Changeset View
Changeset View
Standalone View
Standalone View
src/applications/repository/storage/PhabricatorRepositoryURI.php
Show First 20 Lines • Show All 495 Lines • ▼ Show 20 Lines | return array( | ||||
'label' => pht('Default'), | 'label' => pht('Default'), | ||||
'short' => pht('Use default behavior.'), | 'short' => pht('Use default behavior.'), | ||||
), | ), | ||||
self::IO_OBSERVE => array( | self::IO_OBSERVE => array( | ||||
'icon' => 'fa-download', | 'icon' => 'fa-download', | ||||
'color' => 'green', | 'color' => 'green', | ||||
'label' => pht('Observe'), | 'label' => pht('Observe'), | ||||
'note' => pht( | 'note' => pht( | ||||
'Phabricator will observe changes to this URI and copy them.'), | 'Changes to this URI will be observed and pulled.'), | ||||
'short' => pht('Copy from a remote.'), | 'short' => pht('Copy from a remote.'), | ||||
), | ), | ||||
self::IO_MIRROR => array( | self::IO_MIRROR => array( | ||||
'icon' => 'fa-upload', | 'icon' => 'fa-upload', | ||||
'color' => 'green', | 'color' => 'green', | ||||
'label' => pht('Mirror'), | 'label' => pht('Mirror'), | ||||
'note' => pht( | 'note' => pht( | ||||
'Phabricator will push a copy of any changes to this URI.'), | 'A copy of any changes will be pushed to this URI.'), | ||||
'short' => pht('Push a copy to a remote.'), | 'short' => pht('Push a copy to a remote.'), | ||||
), | ), | ||||
self::IO_NONE => array( | self::IO_NONE => array( | ||||
'icon' => 'fa-times', | 'icon' => 'fa-times', | ||||
'color' => 'grey', | 'color' => 'grey', | ||||
'label' => pht('No I/O'), | 'label' => pht('No I/O'), | ||||
'note' => pht( | 'note' => pht( | ||||
'Phabricator will not push or pull any changes to this URI.'), | 'No changes will be pushed or pulled from this URI.'), | ||||
'short' => pht('Do not perform any I/O.'), | 'short' => pht('Do not perform any I/O.'), | ||||
), | ), | ||||
self::IO_READ => array( | self::IO_READ => array( | ||||
'icon' => 'fa-folder', | 'icon' => 'fa-folder', | ||||
'color' => 'blue', | 'color' => 'blue', | ||||
'label' => pht('Read Only'), | 'label' => pht('Read Only'), | ||||
'note' => pht( | 'note' => pht( | ||||
'Phabricator will serve a read-only copy of the repository from '. | 'A read-only copy of the repository will be served from this URI.'), | ||||
'this URI.'), | |||||
'short' => pht('Serve repository in read-only mode.'), | 'short' => pht('Serve repository in read-only mode.'), | ||||
), | ), | ||||
self::IO_READWRITE => array( | self::IO_READWRITE => array( | ||||
'icon' => 'fa-folder-open', | 'icon' => 'fa-folder-open', | ||||
'color' => 'blue', | 'color' => 'blue', | ||||
'label' => pht('Read/Write'), | 'label' => pht('Read/Write'), | ||||
'note' => pht( | 'note' => pht( | ||||
'Phabricator will serve a read/write copy of the repository from '. | 'A read/write copy of the repository will be served from this URI.'), | ||||
'this URI.'), | |||||
'short' => pht('Serve repository in read/write mode.'), | 'short' => pht('Serve repository in read/write mode.'), | ||||
), | ), | ||||
); | ); | ||||
} | } | ||||
public static function getDisplayTypeMap() { | public static function getDisplayTypeMap() { | ||||
return array( | return array( | ||||
self::DISPLAY_DEFAULT => array( | self::DISPLAY_DEFAULT => array( | ||||
▲ Show 20 Lines • Show All 218 Lines • Show Last 20 Lines |