Skip to content

Commit ba81aa1

Browse files
author
epriestley
committedJan 30, 2014
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
1 parent 45ba8e1 commit ba81aa1

File tree

11 files changed

+4
-113
lines changed

11 files changed

+4
-113
lines changed
 

‎resources/celerity/map.php

+3-3
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
return array(
88
'names' =>
99
array(
10-
'core.pkg.css' => 'a2b5fd6a',
10+
'core.pkg.css' => '9ed733e4',
1111
'core.pkg.js' => 'c7854cc5',
1212
'darkconsole.pkg.js' => 'ca8671ce',
1313
'differential.pkg.css' => '5a65a762',
@@ -41,7 +41,7 @@
4141
'rsrc/css/application/auth/auth.css' => '1e655982',
4242
'rsrc/css/application/base/main-menu-view.css' => 'aa18107a',
4343
'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',
4545
'rsrc/css/application/base/standard-page-view.css' => '517cdfb1',
4646
'rsrc/css/application/chatlog/chatlog.css' => '0cd2bc78',
4747
'rsrc/css/application/config/config-options.css' => '7fedf08b',
@@ -670,7 +670,7 @@
670670
'people-profile-css' => 'd0bababe',
671671
'phabricator-action-header-view-css' => 'cc654b91',
672672
'phabricator-action-list-view-css' => '81383e25',
673-
'phabricator-application-launch-view-css' => '6f8453d9',
673+
'phabricator-application-launch-view-css' => 'd2b2916f',
674674
'phabricator-busy' => '6453c869',
675675
'phabricator-chatlog-css' => '0cd2bc78',
676676
'phabricator-content-source-view-css' => '4b8b05d4',

‎src/applications/base/PhabricatorApplication.php

-12
Original file line numberDiff line numberDiff line change
@@ -275,18 +275,6 @@ public function buildMainMenuExtraNodes(
275275
}
276276

277277

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-
290278
/**
291279
* Build items for the "quick create" menu.
292280
*

‎src/applications/calendar/application/PhabricatorApplicationCalendar.php

-4
Original file line numberDiff line numberDiff line change
@@ -32,10 +32,6 @@ public function isBeta() {
3232
return true;
3333
}
3434

35-
public function getQuickCreateURI() {
36-
return $this->getBaseURI().'status/create/';
37-
}
38-
3935
public function getRoutes() {
4036
return array(
4137
'/calendar/' => array(

‎src/applications/conpherence/application/PhabricatorApplicationConpherence.php

-4
Original file line numberDiff line numberDiff line change
@@ -9,10 +9,6 @@ public function getBaseURI() {
99
return '/conpherence/';
1010
}
1111

12-
public function getQuickCreateURI() {
13-
return $this->getBaseURI().'new/';
14-
}
15-
1612
public function getShortDescription() {
1713
return pht('Messaging');
1814
}

‎src/applications/files/application/PhabricatorApplicationFiles.php

-4
Original file line numberDiff line numberDiff line change
@@ -29,10 +29,6 @@ public function getApplicationGroup() {
2929
return self::GROUP_UTILITIES;
3030
}
3131

32-
public function getQuickCreateURI() {
33-
return $this->getBaseURI().'upload/';
34-
}
35-
3632
public function canUninstall() {
3733
return false;
3834
}

‎src/applications/legalpad/application/PhabricatorApplicationLegalpad.php

-5
Original file line numberDiff line numberDiff line change
@@ -29,11 +29,6 @@ public function getApplicationGroup() {
2929
return self::GROUP_COMMUNICATION;
3030
}
3131

32-
public function getQuickCreateURI() {
33-
return $this->getBaseURI().'create/';
34-
}
35-
36-
3732
public function isBeta() {
3833
return true;
3934
}

‎src/applications/macro/application/PhabricatorApplicationMacro.php

-4
Original file line numberDiff line numberDiff line change
@@ -22,10 +22,6 @@ public function getApplicationGroup() {
2222
return self::GROUP_UTILITIES;
2323
}
2424

25-
public function getQuickCreateURI() {
26-
return $this->getBaseURI().'create/';
27-
}
28-
2925
public function getRoutes() {
3026
return array(
3127
'/macro/' => array(

‎src/applications/maniphest/application/PhabricatorApplicationManiphest.php

-4
Original file line numberDiff line numberDiff line change
@@ -28,10 +28,6 @@ public function getFactObjectsForAnalysis() {
2828
);
2929
}
3030

31-
public function getQuickCreateURI() {
32-
return $this->getBaseURI().'task/create/';
33-
}
34-
3531
public function getEventListeners() {
3632
return array(
3733
new ManiphestNameIndexEventListener(),

‎src/applications/meta/view/PhabricatorApplicationLaunchView.php

+1-23
Original file line numberDiff line numberDiff line change
@@ -125,31 +125,9 @@ public function render() {
125125
'style' => nonempty(implode('; ', $styles), null),
126126
),
127127
'');
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-
}
151128
}
152129

130+
$classes = array();
153131
$classes[] = 'phabricator-application-launch-container';
154132
if ($this->fullWidth) {
155133
$classes[] = 'application-tile-full';

‎src/applications/paste/application/PhabricatorApplicationPaste.php

-4
Original file line numberDiff line numberDiff line change
@@ -18,10 +18,6 @@ public function getApplicationGroup() {
1818
return self::GROUP_UTILITIES;
1919
}
2020

21-
public function getQuickCreateURI() {
22-
return $this->getBaseURI().'create/';
23-
}
24-
2521
public function getRemarkupRules() {
2622
return array(
2723
new PhabricatorPasteRemarkupRule(),

‎webroot/rsrc/css/application/base/phabricator-application-launch-view.css

-46
Original file line numberDiff line numberDiff line change
@@ -51,28 +51,6 @@ a.application-tile-full.application-tile-create {
5151
border-right: none;
5252
}
5353

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-
7654
.phabricator-application-launch-icon {
7755
display: block;
7856
position: absolute;
@@ -82,13 +60,6 @@ a.application-tile-full.application-tile-create {
8260
height: 28px;
8361
}
8462

85-
.phabricator-application-create-icon {
86-
display: inline-block;
87-
margin: 20px auto;
88-
width: 14px;
89-
height: 14px;
90-
}
91-
9263
.application-tile-full .phabricator-application-launch-icon {
9364
top: 12px;
9465
left: 10px;
@@ -175,20 +146,3 @@ a.application-tile-full.application-tile-create {
175146
top: 16px;
176147
right: 8px;
177148
}
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-
}

0 commit comments

Comments
 (0)
Failed to load comments.