@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.

Remove quick create buttons from application launcher

Summary: Ref T3623. These are obsoleted by the global quick-create menu, so we can simplify the app launcher.

Test Plan: Looked at app launcher, grepped for everything.

Reviewers: chad

Reviewed By: chad

CC: chad, aran

Maniphest Tasks: T3623

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

+4 -113
+3 -3
resources/celerity/map.php
··· 7 7 return array( 8 8 'names' => 9 9 array( 10 - 'core.pkg.css' => 'a2b5fd6a', 10 + 'core.pkg.css' => '9ed733e4', 11 11 'core.pkg.js' => 'c7854cc5', 12 12 'darkconsole.pkg.js' => 'ca8671ce', 13 13 'differential.pkg.css' => '5a65a762', ··· 41 41 'rsrc/css/application/auth/auth.css' => '1e655982', 42 42 'rsrc/css/application/base/main-menu-view.css' => 'aa18107a', 43 43 'rsrc/css/application/base/notification-menu.css' => 'fc9a363c', 44 - 'rsrc/css/application/base/phabricator-application-launch-view.css' => '6f8453d9', 44 + 'rsrc/css/application/base/phabricator-application-launch-view.css' => 'd2b2916f', 45 45 'rsrc/css/application/base/standard-page-view.css' => '517cdfb1', 46 46 'rsrc/css/application/chatlog/chatlog.css' => '0cd2bc78', 47 47 'rsrc/css/application/config/config-options.css' => '7fedf08b', ··· 670 670 'people-profile-css' => 'd0bababe', 671 671 'phabricator-action-header-view-css' => 'cc654b91', 672 672 'phabricator-action-list-view-css' => '81383e25', 673 - 'phabricator-application-launch-view-css' => '6f8453d9', 673 + 'phabricator-application-launch-view-css' => 'd2b2916f', 674 674 'phabricator-busy' => '6453c869', 675 675 'phabricator-chatlog-css' => '0cd2bc78', 676 676 'phabricator-content-source-view-css' => '4b8b05d4',
-12
src/applications/base/PhabricatorApplication.php
··· 276 276 277 277 278 278 /** 279 - * On the Phabricator homepage sidebar, this function returns the URL for 280 - * a quick create X link which is displayed in the wide button only. 281 - * 282 - * @return string 283 - * @task ui 284 - */ 285 - public function getQuickCreateURI() { 286 - return null; 287 - } 288 - 289 - 290 - /** 291 279 * Build items for the "quick create" menu. 292 280 * 293 281 * @param PhabricatorUser The viewing user.
-4
src/applications/calendar/application/PhabricatorApplicationCalendar.php
··· 32 32 return true; 33 33 } 34 34 35 - public function getQuickCreateURI() { 36 - return $this->getBaseURI().'status/create/'; 37 - } 38 - 39 35 public function getRoutes() { 40 36 return array( 41 37 '/calendar/' => array(
-4
src/applications/conpherence/application/PhabricatorApplicationConpherence.php
··· 9 9 return '/conpherence/'; 10 10 } 11 11 12 - public function getQuickCreateURI() { 13 - return $this->getBaseURI().'new/'; 14 - } 15 - 16 12 public function getShortDescription() { 17 13 return pht('Messaging'); 18 14 }
-4
src/applications/files/application/PhabricatorApplicationFiles.php
··· 29 29 return self::GROUP_UTILITIES; 30 30 } 31 31 32 - public function getQuickCreateURI() { 33 - return $this->getBaseURI().'upload/'; 34 - } 35 - 36 32 public function canUninstall() { 37 33 return false; 38 34 }
-5
src/applications/legalpad/application/PhabricatorApplicationLegalpad.php
··· 29 29 return self::GROUP_COMMUNICATION; 30 30 } 31 31 32 - public function getQuickCreateURI() { 33 - return $this->getBaseURI().'create/'; 34 - } 35 - 36 - 37 32 public function isBeta() { 38 33 return true; 39 34 }
-4
src/applications/macro/application/PhabricatorApplicationMacro.php
··· 22 22 return self::GROUP_UTILITIES; 23 23 } 24 24 25 - public function getQuickCreateURI() { 26 - return $this->getBaseURI().'create/'; 27 - } 28 - 29 25 public function getRoutes() { 30 26 return array( 31 27 '/macro/' => array(
-4
src/applications/maniphest/application/PhabricatorApplicationManiphest.php
··· 28 28 ); 29 29 } 30 30 31 - public function getQuickCreateURI() { 32 - return $this->getBaseURI().'task/create/'; 33 - } 34 - 35 31 public function getEventListeners() { 36 32 return array( 37 33 new ManiphestNameIndexEventListener(),
+1 -23
src/applications/meta/view/PhabricatorApplicationLaunchView.php
··· 125 125 'style' => nonempty(implode('; ', $styles), null), 126 126 ), 127 127 ''); 128 - 129 - $classes = array(); 130 - if ($application->getQuickCreateURI()) { 131 - $classes[] = 'phabricator-application-create-icon'; 132 - $classes[] = 'sprite-icons'; 133 - $classes[] = 'icons-new-white'; 134 - $plus_icon = phutil_tag( 135 - 'span', 136 - array( 137 - 'class' => implode(' ', $classes), 138 - ), 139 - ''); 140 - 141 - $create_button = phutil_tag( 142 - 'a', 143 - array( 144 - 'href' => $application->getQuickCreateURI(), 145 - 'class' => 'phabricator-application-launch-create', 146 - ), 147 - $plus_icon); 148 - $classes = array(); 149 - $classes[] = 'application-tile-create'; 150 - } 151 128 } 152 129 130 + $classes = array(); 153 131 $classes[] = 'phabricator-application-launch-container'; 154 132 if ($this->fullWidth) { 155 133 $classes[] = 'application-tile-full';
-4
src/applications/paste/application/PhabricatorApplicationPaste.php
··· 18 18 return self::GROUP_UTILITIES; 19 19 } 20 20 21 - public function getQuickCreateURI() { 22 - return $this->getBaseURI().'create/'; 23 - } 24 - 25 21 public function getRemarkupRules() { 26 22 return array( 27 23 new PhabricatorPasteRemarkupRule(),
-46
webroot/rsrc/css/application/base/phabricator-application-launch-view.css
··· 51 51 border-right: none; 52 52 } 53 53 54 - .application-tile-full + .phabricator-application-launch-create { 55 - float: right; 56 - width: 12%; 57 - height: 52px; 58 - position: relative; 59 - border-top: 1px solid #000; 60 - border-bottom: none; 61 - display: inline-block; 62 - text-align: center; 63 - } 64 - 65 - .device-desktop a.phabricator-application-launch-create:hover { 66 - background-color: #1e2225; 67 - color: #fff; 68 - text-decoration: none; 69 - } 70 - 71 - .device-desktop a.phabricator-application-launch-container:hover { 72 - background-color: #1e2225; 73 - text-decoration: none; 74 - } 75 - 76 54 .phabricator-application-launch-icon { 77 55 display: block; 78 56 position: absolute; ··· 80 58 top: 10px; 81 59 width: 28px; 82 60 height: 28px; 83 - } 84 - 85 - .phabricator-application-create-icon { 86 - display: inline-block; 87 - margin: 20px auto; 88 - width: 14px; 89 - height: 14px; 90 61 } 91 62 92 63 .application-tile-full .phabricator-application-launch-icon { ··· 175 146 top: 16px; 176 147 right: 8px; 177 148 } 178 - 179 - .application-tile-full .phabricator-application-launch-create { 180 - display: inline-block; 181 - float: right; 182 - background: rgb(0, 122, 255); 183 - border-radius: 5px; 184 - color: white; 185 - font-weight: bold; 186 - padding: 1px 6px 2px; 187 - border: 2px solid #333; 188 - font-size: 11px; 189 - box-shadow: 0 0px 2px #000; 190 - } 191 - 192 - .phabricator-application-launch-create { 193 - display: none; 194 - }