Page Menu
Home
Phabricator
Search
Configure Global Search
Log In
Files
F13992417
D13308.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
3 KB
Referenced Files
None
Subscribers
None
D13308.diff
View Options
diff --git a/src/applications/search/controller/PhabricatorApplicationSearchController.php b/src/applications/search/controller/PhabricatorApplicationSearchController.php
--- a/src/applications/search/controller/PhabricatorApplicationSearchController.php
+++ b/src/applications/search/controller/PhabricatorApplicationSearchController.php
@@ -193,7 +193,8 @@
pht('Edit Query'),
pht('Hide Query'),
$form,
- $this->getApplicationURI('query/advanced/?query='.$query_key));
+ $this->getApplicationURI('query/advanced/?query='.$query_key),
+ (!$named_query ? true : false));
} else {
$box->setForm($form);
}
diff --git a/src/view/phui/PHUIObjectBoxView.php b/src/view/phui/PHUIObjectBoxView.php
--- a/src/view/phui/PHUIObjectBoxView.php
+++ b/src/view/phui/PHUIObjectBoxView.php
@@ -24,6 +24,7 @@
private $hideAction;
private $showHideHref;
private $showHideContent;
+ private $showHideOpen;
private $tabs = array();
private $propertyLists = array();
@@ -173,11 +174,12 @@
return $this;
}
- public function setShowHide($show, $hide, $content, $href) {
+ public function setShowHide($show, $hide, $content, $href, $open = false) {
$this->showAction = $show;
$this->hideAction = $hide;
$this->showHideContent = $content;
$this->showHideHref = $href;
+ $this->showHideOpen = $open;
return $this;
}
@@ -205,10 +207,13 @@
$show_action_id = celerity_generate_unique_node_id();
$content_id = celerity_generate_unique_node_id();
+ $hide_style = ($this->showHideOpen ? 'display: none;': null);
+ $show_style = ($this->showHideOpen ? null : 'display: none;');
$hide_action = id(new PHUIButtonView())
->setTag('a')
->addSigil('reveal-content')
->setID($hide_action_id)
+ ->setStyle($hide_style)
->setHref($this->showHideHref)
->setMetaData(
array(
@@ -220,7 +225,7 @@
$show_action = id(new PHUIButtonView())
->setTag('a')
->addSigil('reveal-content')
- ->setStyle('display: none;')
+ ->setStyle($show_style)
->setHref('#')
->setID($show_action_id)
->setMetaData(
@@ -239,7 +244,7 @@
array(
'class' => 'phui-object-box-hidden-content',
'id' => $content_id,
- 'style' => 'display: none;',
+ 'style' => $show_style,
),
$this->showHideContent),
);
@@ -352,7 +357,7 @@
$content = id(new PHUIBoxView())
->appendChild(
array(
- $this->anchor,
+ ($this->showHideOpen == false ? $this->anchor : null),
$header,
$this->infoView,
$this->formErrors,
@@ -362,6 +367,7 @@
$tabs,
$tab_lists,
$showhide,
+ ($this->showHideOpen == true ? $this->anchor : null),
$property_lists,
$this->table,
$this->renderChildren(),
diff --git a/webroot/rsrc/css/application/search/search-results.css b/webroot/rsrc/css/application/search/search-results.css
--- a/webroot/rsrc/css/application/search/search-results.css
+++ b/webroot/rsrc/css/application/search/search-results.css
@@ -4,6 +4,7 @@
.phui-object-item-link strong {
color: {$fire};
+ text-decoration: underline;
}
.phui-source-fragment {
diff --git a/webroot/rsrc/css/phui/phui-header-view.css b/webroot/rsrc/css/phui/phui-header-view.css
--- a/webroot/rsrc/css/phui/phui-header-view.css
+++ b/webroot/rsrc/css/phui/phui-header-view.css
@@ -97,11 +97,6 @@
font-size: 13px;
}
-.device-phone .phui-object-box .phui-header-view .phui-header-action-links {
- margin-right: 4px;
- margin-top: -1px;
-}
-
.device-phone .phui-header-action-link .phui-button-text {
visibility: hidden;
width: 0;
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Wed, Oct 23, 4:28 PM (2 w, 6 d ago)
Storage Engine
blob
Storage Format
Encrypted (AES-256-CBC)
Storage Handle
6744679
Default Alt Text
D13308.diff (3 KB)
Attached To
Mode
D13308: [Redesign] Persisent an open form when actively running queries
Attached
Detach File
Event Timeline
Log In to Comment