Add links for installed plugins

This commit is contained in:
Marcel Klehr 2013-01-24 13:43:42 +01:00
parent 6ae46ea8e3
commit 9fa5b9506e

View file

@ -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);
}