Page Menu
Home
Phabricator
Search
Configure Global Search
Log In
Files
F15422799
D17238.id41456.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
2 KB
Referenced Files
None
Subscribers
None
D17238.id41456.diff
View Options
diff --git a/src/applications/meta/view/PhabricatorApplicationLaunchView.php b/src/applications/meta/view/PhabricatorApplicationLaunchView.php
--- a/src/applications/meta/view/PhabricatorApplicationLaunchView.php
+++ b/src/applications/meta/view/PhabricatorApplicationLaunchView.php
@@ -49,65 +49,9 @@
),
$application->getShortDescription());
- $counts = array();
- $text = array();
- if ($this->status) {
- foreach ($this->status as $status) {
- $type = $status->getType();
- $counts[$type] = idx($counts, $type, 0) + $status->getCount();
- if ($status->getCount()) {
- $text[] = $status->getText();
- }
- }
- }
-
- $attention = PhabricatorApplicationStatusView::TYPE_NEEDS_ATTENTION;
- $warning = PhabricatorApplicationStatusView::TYPE_WARNING;
- if (!empty($counts[$attention]) || !empty($counts[$warning])) {
- $count = idx($counts, $attention, 0);
- $count1 = $count2 = '';
- if ($count > 0) {
- $count1 = phutil_tag(
- 'span',
- array(
- 'class' => 'phabricator-application-attention-count',
- ),
- $this->formatStatusItemCount($count));
- }
-
-
- if (!empty($counts[$warning])) {
- $count2 = phutil_tag(
- 'span',
- array(
- 'class' => 'phabricator-application-warning-count',
- ),
- $this->formatStatusItemCount($counts[$warning]));
- }
-
- if (nonempty($count1) && nonempty($count2)) {
- $numbers = array($count1, ' / ', $count2);
- } else {
- $numbers = array($count1, $count2);
- }
-
- Javelin::initBehavior('phabricator-tooltips');
- $content[] = javelin_tag(
- 'span',
- array(
- 'sigil' => 'has-tooltip',
- 'meta' => array(
- 'tip' => implode("\n", $text),
- 'size' => 300,
- 'align' => 'E',
- ),
- 'class' => 'phabricator-application-launch-attention',
- ),
- $numbers);
- }
-
$classes = array();
$classes[] = 'phabricator-application-launch-icon';
+
$styles = array();
$classes[] = $application->getIcon();
$classes[] = 'phui-icon-view';
@@ -128,13 +72,4 @@
);
}
- private function formatStatusItemCount($count) {
- $limit = PhabricatorApplication::MAX_STATUS_ITEMS;
- if ($count >= $limit) {
- return pht('%s+', new PhutilNumber($limit - 1));
- } else {
- return pht('%s', new PhutilNumber($count));
- }
- }
-
}
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Sun, Mar 23, 10:48 AM (2 w, 2 d ago)
Storage Engine
blob
Storage Format
Encrypted (AES-256-CBC)
Storage Handle
7450115
Default Alt Text
D17238.id41456.diff (2 KB)
Attached To
Mode
D17238: Remove counts from home navigation
Attached
Detach File
Event Timeline
Log In to Comment