@recaptime-dev's working patches + fork for Phorge, a community fork of Phabricator. (Upstream dev and stable branches are at upstream/main and upstream/stable respectively.) hq.recaptime.dev/wiki/Phorge
phorge phabricator
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

Add a visual divider element to profile menus

Summary: Ref T10054.

Test Plan: {F1061529}

Reviewers: chad

Reviewed By: chad

Maniphest Tasks: T10054

Differential Revision: https://secure.phabricator.com/D15024

+59 -3
+3 -3
resources/celerity/map.php
··· 7 7 */ 8 8 return array( 9 9 'names' => array( 10 - 'core.pkg.css' => '2a7bdb75', 10 + 'core.pkg.css' => '30316566', 11 11 'core.pkg.js' => '1f5f365a', 12 12 'darkconsole.pkg.js' => 'e7393ebb', 13 13 'differential.pkg.css' => '2de124c9', ··· 143 143 'rsrc/css/phui/phui-object-item-list-view.css' => '26c30d3f', 144 144 'rsrc/css/phui/phui-pager.css' => 'bea33d23', 145 145 'rsrc/css/phui/phui-pinboard-view.css' => '2495140e', 146 - 'rsrc/css/phui/phui-profile-menu.css' => '6123de4e', 146 + 'rsrc/css/phui/phui-profile-menu.css' => '05546270', 147 147 'rsrc/css/phui/phui-property-list-view.css' => '27b2849e', 148 148 'rsrc/css/phui/phui-remarkup-preview.css' => '1a8f2591', 149 149 'rsrc/css/phui/phui-spacing.css' => '042804d6', ··· 822 822 'phui-object-item-list-view-css' => '26c30d3f', 823 823 'phui-pager-css' => 'bea33d23', 824 824 'phui-pinboard-view-css' => '2495140e', 825 - 'phui-profile-menu-css' => '6123de4e', 825 + 'phui-profile-menu-css' => '05546270', 826 826 'phui-property-list-view-css' => '27b2849e', 827 827 'phui-remarkup-preview-css' => '1a8f2591', 828 828 'phui-spacing-css' => '042804d6',
+2
src/__phutil_library_map__.php
··· 2154 2154 'PhabricatorDisabledUserController' => 'applications/auth/controller/PhabricatorDisabledUserController.php', 2155 2155 'PhabricatorDisplayPreferencesSettingsPanel' => 'applications/settings/panel/PhabricatorDisplayPreferencesSettingsPanel.php', 2156 2156 'PhabricatorDisqusAuthProvider' => 'applications/auth/provider/PhabricatorDisqusAuthProvider.php', 2157 + 'PhabricatorDividerProfilePanel' => 'applications/search/profilepanel/PhabricatorDividerProfilePanel.php', 2157 2158 'PhabricatorDivinerApplication' => 'applications/diviner/application/PhabricatorDivinerApplication.php', 2158 2159 'PhabricatorDoorkeeperApplication' => 'applications/doorkeeper/application/PhabricatorDoorkeeperApplication.php', 2159 2160 'PhabricatorDraft' => 'applications/draft/storage/PhabricatorDraft.php', ··· 6412 6413 'PhabricatorDisabledUserController' => 'PhabricatorAuthController', 6413 6414 'PhabricatorDisplayPreferencesSettingsPanel' => 'PhabricatorSettingsPanel', 6414 6415 'PhabricatorDisqusAuthProvider' => 'PhabricatorOAuth2AuthProvider', 6416 + 'PhabricatorDividerProfilePanel' => 'PhabricatorProfilePanel', 6415 6417 'PhabricatorDivinerApplication' => 'PhabricatorApplication', 6416 6418 'PhabricatorDoorkeeperApplication' => 'PhabricatorApplication', 6417 6419 'PhabricatorDraft' => 'PhabricatorDraftDAO',
+48
src/applications/search/profilepanel/PhabricatorDividerProfilePanel.php
··· 1 + <?php 2 + 3 + final class PhabricatorDividerProfilePanel 4 + extends PhabricatorProfilePanel { 5 + 6 + const PANELKEY = 'divider'; 7 + 8 + public function getPanelTypeIcon() { 9 + return 'fa-minus'; 10 + } 11 + 12 + public function getPanelTypeName() { 13 + return pht('Divider'); 14 + } 15 + 16 + public function canAddToObject($object) { 17 + return true; 18 + } 19 + 20 + public function getDisplayName( 21 + PhabricatorProfilePanelConfiguration $config) { 22 + return pht("\xE2\x80\x94"); 23 + } 24 + 25 + public function buildEditEngineFields( 26 + PhabricatorProfilePanelConfiguration $config) { 27 + return array( 28 + id(new PhabricatorInstructionsEditField()) 29 + ->setValue( 30 + pht( 31 + 'This is a visual divider which you can use to separate '. 32 + 'sections in the menu. It does not have any configurable '. 33 + 'options.')), 34 + ); 35 + } 36 + 37 + protected function newNavigationMenuItems( 38 + PhabricatorProfilePanelConfiguration $config) { 39 + 40 + $item = $this->newItem() 41 + ->addClass('phui-divider'); 42 + 43 + return array( 44 + $item, 45 + ); 46 + } 47 + 48 + }
+6
webroot/rsrc/css/phui/phui-profile-menu.css
··· 85 85 background-color: rgba(0, 0, 0, 0.150); 86 86 color: {$menu.profile.text.selected}; 87 87 } 88 + 89 + 90 + .phui-profile-menu .phabricator-side-menu .phui-divider { 91 + margin: 4px 0; 92 + border-bottom: 1px solid rgba(0, 0, 0, 0.200); 93 + }