Page MenuHomePhabricator

D18021.id.diff
No OneTemporary

D18021.id.diff

diff --git a/resources/celerity/map.php b/resources/celerity/map.php
--- a/resources/celerity/map.php
+++ b/resources/celerity/map.php
@@ -9,7 +9,7 @@
'names' => array(
'conpherence.pkg.css' => 'ff161f2d',
'conpherence.pkg.js' => 'b5b51108',
- 'core.pkg.css' => '2c6a5ba4',
+ 'core.pkg.css' => 'b666574e',
'core.pkg.js' => '21d34805',
'darkconsole.pkg.js' => '1f9a31bc',
'differential.pkg.css' => '7d4cfa59',
@@ -132,7 +132,7 @@
'rsrc/css/phui/object-item/phui-oi-color.css' => 'cd2b9b77',
'rsrc/css/phui/object-item/phui-oi-drag-ui.css' => '08f4ccc3',
'rsrc/css/phui/object-item/phui-oi-flush-ui.css' => '9d9685d6',
- 'rsrc/css/phui/object-item/phui-oi-list-view.css' => '78fdc98e',
+ 'rsrc/css/phui/object-item/phui-oi-list-view.css' => 'ed19241b',
'rsrc/css/phui/object-item/phui-oi-simple-ui.css' => 'a8beebea',
'rsrc/css/phui/phui-action-list.css' => 'c01858f4',
'rsrc/css/phui/phui-action-panel.css' => '91c7b835',
@@ -875,7 +875,7 @@
'phui-oi-color-css' => 'cd2b9b77',
'phui-oi-drag-ui-css' => '08f4ccc3',
'phui-oi-flush-ui-css' => '9d9685d6',
- 'phui-oi-list-view-css' => '78fdc98e',
+ 'phui-oi-list-view-css' => 'ed19241b',
'phui-oi-simple-ui-css' => 'a8beebea',
'phui-pager-css' => '77d8a794',
'phui-pinboard-view-css' => '2495140e',
diff --git a/src/applications/guides/view/PhabricatorGuideListView.php b/src/applications/guides/view/PhabricatorGuideListView.php
--- a/src/applications/guides/view/PhabricatorGuideListView.php
+++ b/src/applications/guides/view/PhabricatorGuideListView.php
@@ -30,8 +30,8 @@
->setText(pht('Skip'))
->setTag('a')
->setHref($skip_href)
- ->setColor(PHUIButtonView::GREY);
- $list_item->setLaunchButton($skip);
+ ->setColor(PHUIButtonView::SIMPLE);
+ $list_item->setSideColumn($skip);
}
$list->addItem($list_item);
}
diff --git a/src/applications/meta/query/PhabricatorAppSearchEngine.php b/src/applications/meta/query/PhabricatorAppSearchEngine.php
--- a/src/applications/meta/query/PhabricatorAppSearchEngine.php
+++ b/src/applications/meta/query/PhabricatorAppSearchEngine.php
@@ -218,20 +218,39 @@
$configure = id(new PHUIButtonView())
->setTag('a')
+ ->setIcon('fa-gears')
->setHref('/applications/view/'.get_class($application).'/')
->setText(pht('Configure'))
->setColor(PHUIButtonView::GREY);
$name = $application->getName();
- if ($application->isPrototype()) {
- $name = $name.' '.pht('(Prototype)');
- }
$item = id(new PHUIObjectItemView())
->setHeader($name)
->setImageIcon($icon)
- ->setSubhead($description)
- ->setLaunchButton($configure);
+ ->setSideColumn($configure);
+
+ if (!$application->isFirstParty()) {
+ $tag = id(new PHUITagView())
+ ->setName(pht('Extension'))
+ ->setIcon('fa-puzzle-piece')
+ ->setColor(PHUITagView::COLOR_BLUE)
+ ->setType(PHUITagView::TYPE_SHADE)
+ ->setSlimShady(true);
+ $item->addAttribute($tag);
+ }
+
+ if ($application->isPrototype()) {
+ $prototype_tag = id(new PHUITagView())
+ ->setName(pht('Prototype'))
+ ->setIcon('fa-exclamation-circle')
+ ->setColor(PHUITagView::COLOR_ORANGE)
+ ->setType(PHUITagView::TYPE_SHADE)
+ ->setSlimShady(true);
+ $item->addAttribute($prototype_tag);
+ }
+
+ $item->addAttribute($description);
if ($application->getBaseURI() && $application->isInstalled()) {
$item->setHref($application->getBaseURI());
@@ -242,10 +261,6 @@
$item->setDisabled(true);
}
- if (!$application->isFirstParty()) {
- $item->addAttribute(pht('Extension'));
- }
-
$list->addItem($item);
}
diff --git a/src/applications/phame/query/PhameBlogSearchEngine.php b/src/applications/phame/query/PhameBlogSearchEngine.php
--- a/src/applications/phame/query/PhameBlogSearchEngine.php
+++ b/src/applications/phame/query/PhameBlogSearchEngine.php
@@ -97,8 +97,9 @@
$button = id(new PHUIButtonView())
->setTag('a')
->setText('New Post')
- ->setHref($this->getApplicationURI('/post/edit/?blog='.$id));
- $item->setLaunchButton($button);
+ ->setHref($this->getApplicationURI('/post/edit/?blog='.$id))
+ ->setColor(PHUIButtonView::SIMPLE);
+ $item->setSideColumn($button);
}
$list->addItem($item);
diff --git a/src/view/phui/PHUIObjectItemView.php b/src/view/phui/PHUIObjectItemView.php
--- a/src/view/phui/PHUIObjectItemView.php
+++ b/src/view/phui/PHUIObjectItemView.php
@@ -25,7 +25,7 @@
private $badge;
private $countdownNum;
private $countdownNoun;
- private $launchButton;
+ private $sideColumn;
private $coverImage;
private $description;
@@ -229,9 +229,8 @@
return $this;
}
- public function setLaunchButton(PHUIButtonView $button) {
- $button->setSize(PHUIButtonView::SMALL);
- $this->launchButton = $button;
+ public function setSideColumn($column) {
+ $this->sideColumn = $column;
return $this;
}
@@ -652,14 +651,15 @@
));
}
- if ($this->launchButton) {
+ /* Fixed width, right column container. */
+ if ($this->sideColumn) {
$column2 = phutil_tag(
'div',
array(
- 'class' => 'phui-oi-col2 phui-oi-launch-button',
+ 'class' => 'phui-oi-col2 phui-oi-side-column',
),
array(
- $this->launchButton,
+ $this->sideColumn,
));
}
diff --git a/webroot/rsrc/css/phui/object-item/phui-oi-list-view.css b/webroot/rsrc/css/phui/object-item/phui-oi-list-view.css
--- a/webroot/rsrc/css/phui/object-item/phui-oi-list-view.css
+++ b/webroot/rsrc/css/phui/object-item/phui-oi-list-view.css
@@ -650,13 +650,13 @@
/* - Launcher Button -------------------------------------------------------- */
-.phui-oi-col2.phui-oi-launch-button {
+.phui-oi-col2.phui-oi-side-column {
text-align: right;
vertical-align: middle;
padding-right: 4px;
}
-.device-phone .phui-oi-col2.phui-oi-launch-button {
+.device-phone .phui-oi-col2.phui-oi-side-column {
padding: 0 8px 8px;
text-align: left;
}

File Metadata

Mime Type
text/plain
Expires
Tue, Oct 15, 3:13 AM (4 w, 20 h ago)
Storage Engine
blob
Storage Format
Encrypted (AES-256-CBC)
Storage Handle
6711098
Default Alt Text
D18021.id.diff (6 KB)

Event Timeline