Skip to content

Instantly share code, notes, and snippets.

@nkgokul
Created February 23, 2015 14:23
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save nkgokul/927a9e152ec6524c65bf to your computer and use it in GitHub Desktop.
Save nkgokul/927a9e152ec6524c65bf to your computer and use it in GitHub Desktop.
Export the Module Upgrade status(as a CSV file) when using Garland as admin theme
var finalString = '';
jQuery(".upgrade-status .project").each(function(){;
var title = jQuery("span.project-title a",this).text();
var moduleLink = jQuery("span.project-title a",this).attr("href");
var modulecode = jQuery("span.project-title a",this).attr("href").split("/").pop();
var status = jQuery("div.version-status:nth-child(1)",this).text();
var release = jQuery("div.versions .version-details a",this).text();
var link = jQuery("div.versions .version-details a",this).attr("href");
finalString += title + ',' + status + ',' + release + ',' + link + ',' + moduleLink + ',' + modulecode+'\n';
//console.log(title + ',' + status + ',' + release + ',' + link);
})
console.log(finalString);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment