Add links for installed plugins
This commit is contained in:
parent
6ae46ea8e3
commit
9fa5b9506e
1 changed files with 5 additions and 1 deletions
|
@ -151,7 +151,11 @@ $(document).ready(function () {
|
|||
var row = $("#installed-plugin-template").clone();
|
||||
|
||||
for (attr in plugin.package) {
|
||||
row.find("." + attr).html(plugin.package[attr]);
|
||||
if(attr == "name"){ // Hack to rewrite URLS into name
|
||||
row.find(".name").html("<a target='_blank' href='https://npmjs.org/package/"+plugin.package['name']+"'>"+plugin.package[attr]+"</a>");
|
||||
}else{
|
||||
row.find("." + attr).html(plugin.package[attr]);
|
||||
}
|
||||
}
|
||||
$("#installed-plugins").append(row);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue