incubator-ambari-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From yus...@apache.org
Subject svn commit: r1495224 - /incubator/ambari/trunk/ambari-web/app/models/host.js
Date Thu, 20 Jun 2013 22:56:51 GMT
Author: yusaku
Date: Thu Jun 20 22:56:50 2013
New Revision: 1495224

URL: http://svn.apache.org/r1495224
Log:
AMBARI-2444. Hosts page: hostname completes with ellipsis even if it is short enough. (Oleg
Nechiporenko via yusaku)

Modified:
    incubator/ambari/trunk/ambari-web/app/models/host.js

Modified: incubator/ambari/trunk/ambari-web/app/models/host.js
URL: http://svn.apache.org/viewvc/incubator/ambari/trunk/ambari-web/app/models/host.js?rev=1495224&r1=1495223&r2=1495224&view=diff
==============================================================================
--- incubator/ambari/trunk/ambari-web/app/models/host.js (original)
+++ incubator/ambari/trunk/ambari-web/app/models/host.js Thu Jun 20 22:56:50 2013
@@ -47,7 +47,7 @@ App.Host = DS.Model.extend({
   }.property('App.router.clusterController.alerts.length'),
 
   publicHostNameFormatted: function() {
-    return this.get('publicHostName').substr(0, 20) + ' ...';
+    return this.get('publicHostName').length < 23 ? this.get('publicHostName') : this.get('publicHostName').substr(0,
20) + '...';
   }.property('publicHostName'),
   /**
    * API return diskTotal and diskFree. Need to save their different



Mime
View raw message