resolve #1349
This commit is contained in:
parent
4204bf9009
commit
1bf526124d
1 changed files with 9 additions and 2 deletions
|
@ -124,9 +124,16 @@ $(document).ready(function () {
|
|||
var version = '0.0.0';
|
||||
// hack to access "versions" property of the npm package object
|
||||
for (version in data.results[plugin_name].versions) break;
|
||||
|
||||
for (attr in plugin) {
|
||||
row.find("." + attr).html(plugin[attr]);
|
||||
if(attr != "name"){ // Hack to rewrite URLS into name
|
||||
row.find("." + attr).html(plugin[attr]);
|
||||
}else{
|
||||
if(plugin['url']){
|
||||
row.find(".name").html("<a href='"+plugin['url'] +"'>"+plugin[attr]+"</a>");
|
||||
}else{
|
||||
row.find(".name").html(plugin["name"]);
|
||||
}
|
||||
}
|
||||
}
|
||||
row.find(".version").html(version);
|
||||
|
||||
|
|
Loading…
Reference in a new issue