community-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From humbed...@apache.org
Subject svn commit: r1652591 - /comdev/projects.apache.org/site/js/projects.js
Date Sat, 17 Jan 2015 12:27:07 GMT
Author: humbedooh
Date: Sat Jan 17 12:27:07 2015
New Revision: 1652591

URL: http://svn.apache.org/r1652591
Log:
use shortdesc if description is not available

Modified:
    comdev/projects.apache.org/site/js/projects.js

Modified: comdev/projects.apache.org/site/js/projects.js
URL: http://svn.apache.org/viewvc/comdev/projects.apache.org/site/js/projects.js?rev=1652591&r1=1652590&r2=1652591&view=diff
==============================================================================
--- comdev/projects.apache.org/site/js/projects.js (original)
+++ comdev/projects.apache.org/site/js/projects.js Sat Jan 17 12:27:07 2015
@@ -230,8 +230,8 @@ function renderProjectPage(json, state)
     if (json && json.name) {
 	// Start by splitting the name, thus fetching the root name of the project, and not the
sub-project.
 	
-	if (!json.description) {
-	    json.description = "No description available"
+	if (!json.description || json.description.length == 0) {
+	    json.description = (json.shortdesc && json.shortdesc.length > 0 ) ? json.shortdesc
: "No description available"
 	}
 	
 	// Title + description



Mime
View raw message