Page Menu
Home
Phabricator
Search
Configure Global Search
Log In
Files
F14056961
D16655.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
5 KB
Referenced Files
None
Subscribers
None
D16655.diff
View Options
diff --git a/resources/celerity/map.php b/resources/celerity/map.php
--- a/resources/celerity/map.php
+++ b/resources/celerity/map.php
@@ -7,7 +7,7 @@
*/
return array(
'names' => array(
- 'conpherence.pkg.css' => '5f3eb99c',
+ 'conpherence.pkg.css' => '1bc6cd0d',
'conpherence.pkg.js' => '11f3e07e',
'core.pkg.css' => '3fa66cb3',
'core.pkg.js' => '30185d95',
@@ -46,7 +46,7 @@
'rsrc/css/application/config/config-template.css' => '8f18fa41',
'rsrc/css/application/config/setup-issue.css' => 'f794cfc3',
'rsrc/css/application/config/unhandled-exception.css' => '4c96257a',
- 'rsrc/css/application/conpherence/durable-column.css' => '6127de1b',
+ 'rsrc/css/application/conpherence/durable-column.css' => '44bcaa19',
'rsrc/css/application/conpherence/header-pane.css' => '517de9fe',
'rsrc/css/application/conpherence/menu.css' => '78c7b811',
'rsrc/css/application/conpherence/message-pane.css' => '0d7dff02',
@@ -618,7 +618,7 @@
'conduit-api-css' => '7bc725c4',
'config-options-css' => '0ede4c9b',
'config-page-css' => '8798e14f',
- 'conpherence-durable-column-view' => '6127de1b',
+ 'conpherence-durable-column-view' => '44bcaa19',
'conpherence-header-pane-css' => '517de9fe',
'conpherence-menu-css' => '78c7b811',
'conpherence-message-pane-css' => '0d7dff02',
diff --git a/src/applications/conpherence/view/ConpherenceDurableColumnView.php b/src/applications/conpherence/view/ConpherenceDurableColumnView.php
--- a/src/applications/conpherence/view/ConpherenceDurableColumnView.php
+++ b/src/applications/conpherence/view/ConpherenceDurableColumnView.php
@@ -150,13 +150,14 @@
$icon_bar = null;
if ($this->conpherences) {
- $icon_bar = phutil_tag(
- 'div',
- array(
- 'class' => 'conpherence-durable-column-icon-bar',
- ),
- $this->buildIconBar());
+ $icon_bar = $this->buildIconBar();
}
+ $icon_bar = phutil_tag(
+ 'div',
+ array(
+ 'class' => 'conpherence-durable-column-icon-bar',
+ ),
+ $icon_bar);
$transactions = $this->buildTransactions();
@@ -198,19 +199,6 @@
);
}
- private function getPolicyIcon(
- ConpherenceThread $conpherence,
- array $policy_objects) {
-
- assert_instances_of($policy_objects, 'PhabricatorPolicy');
-
- $icon = $conpherence->getPolicyIconName($policy_objects);
- $icon = id(new PHUIIconView())
- ->addClass('mmr')
- ->setIcon($icon);
- return $icon;
- }
-
private function buildIconBar() {
$icons = array();
$selected_conpherence = $this->getSelectedConpherence();
@@ -222,12 +210,10 @@
$classes[] = 'selected';
}
$data = $conpherence->getDisplayData($this->getUser());
- $icon = $this->getPolicyIcon($conpherence, $this->getPolicyObjects());
$thread_title = phutil_tag(
'span',
array(),
array(
- $icon,
$data['title'],
));
$image = $data['image'];
@@ -324,17 +310,18 @@
->addMenuItem($minimize)
->addClass('phabricator-application-menu');
- $header = null;
if ($conpherence) {
$data = $conpherence->getDisplayData($this->getUser());
$header = phutil_tag(
'span',
array(),
- array(
- $this->getPolicyIcon($conpherence, $this->getPolicyObjects()),
- $data['title'],
- ));
- }
+ $data['title']);
+ } else {
+ $header = phutil_tag(
+ 'span',
+ array(),
+ pht('Conpherence'));
+ }
$status = new PhabricatorNotificationStatusView();
@@ -406,22 +393,22 @@
if (!$this->getVisible() || $this->getInitialLoad()) {
return pht('Loading...');
}
- return array(
+ $view = array(
phutil_tag(
'div',
array(
- 'class' => 'mmb',
+ 'class' => 'column-no-rooms-text',
),
- pht('You are not in any rooms yet.')),
+ pht('You have not joined any rooms yet.')),
javelin_tag(
'a',
array(
- 'href' => '/conpherence/new/',
+ 'href' => '/conpherence/search/',
'class' => 'button grey',
- 'sigil' => 'workflow',
),
- pht('Create a Room')),
+ pht('Find Rooms')),
);
+ return phutil_tag_div('column-no-rooms', $view);
}
$data = ConpherenceTransactionRenderer::renderTransactions(
diff --git a/webroot/rsrc/css/application/conpherence/durable-column.css b/webroot/rsrc/css/application/conpherence/durable-column.css
--- a/webroot/rsrc/css/application/conpherence/durable-column.css
+++ b/webroot/rsrc/css/application/conpherence/durable-column.css
@@ -118,11 +118,6 @@
padding: 10px 8px 10px 8px;
}
-.conpherence-durable-column-header-text .phui-icon-view {
- color: #fff;
- text-shadow: 1px 1px 0 rgba(0,0,0,.6);
-}
-
.conpherence-durable-column-icon-bar {
width: 36px;
background-color: {$lightgreybackground};
@@ -171,6 +166,16 @@
overflow-x: hidden;
}
+.conpherence-durable-column .column-no-rooms {
+ padding: 12px 8px;
+}
+
+.conpherence-durable-column .column-no-rooms-text {
+ color: {$greytext};
+ font-style: italic;
+ margin-bottom: 16px;
+}
+
.conpherence-durable-column-transactions {
padding: 8px 12px 0;
}
@@ -319,12 +324,6 @@
}
.minimize-column .conpherence-durable-column
- .conpherence-durable-column-header-text .phui-icon-view {
- color: {$darkbluetext};
- text-shadow: none;
-}
-
-.minimize-column .conpherence-durable-column
.conpherence-durable-column-header .phabricator-application-menu
.phui-list-item-icon.phui-font-fa {
color: {$bluetext};
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Sun, Nov 17, 11:41 PM (13 h, 4 m ago)
Storage Engine
blob
Storage Format
Encrypted (AES-256-CBC)
Storage Handle
6755000
Default Alt Text
D16655.diff (5 KB)
Attached To
Mode
D16655: Clean up nux state with durable column
Attached
Detach File
Event Timeline
Log In to Comment