You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@community.apache.org by hu...@apache.org on 2015/01/17 13:27:07 UTC

svn commit: r1652591 - /comdev/projects.apache.org/site/js/projects.js

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