You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@ambari.apache.org by yu...@apache.org on 2013/06/21 00:56:51 UTC
svn commit: r1495224 - /incubator/ambari/trunk/ambari-web/app/models/host.js
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