"name": "Allen Porter",
"address": "allen.porter@gmail.com"
},
+ //"depiction": "http://planet-iphones.com/repository/info/chromium1.3.php",
+ "depiction": "http://cydia.saurik.com/terminal.html",
"description": "this is a sample description",
"homepage": "http://cydia.saurik.com/terminal.html",
"installed": "286u-4",
$(".author").remove();
else {
$("#author").html(author.name);
- $("#author-link").href("mailto:" + author.address + "?subject=" + regarding);
+ $("#author-href").href("mailto:" + author.address + "?subject=" + regarding);
+ }
+
+ //$("#notice-src").src("http://saurik.cachefly.net/notice/" + encodeURIComponent(id) + ".html");
+
+ var depiction = package.depiction;
+ if (depiction == null)
+ $(".depiction").remove();
+ else {
+ $(".description").display("none");
+ $("#depiction-src").src(depiction);
}
var description = package.description;
if (homepage == null)
$(".homepage").remove();
else
- $("#homepage-link").href(homepage);
+ $("#homepage-href").href(homepage);
var installed = package.installed;
if (installed == null)
$(".installed").remove();
else {
$("#installed").html(installed);
- $("#files-link").href("cydia://files/" + id);
+ $("#files-href").href("cydia://files/" + id);
}
$("#id").html(id);
$(".maintainer").remove();
else {
$("#maintainer").html(maintainer.name);
- $("#maintainer-link").href("mailto:" + maintainer.address + "?subject=" + regarding);
+ $("#maintainer-href").href("mailto:" + maintainer.address + "?subject=" + regarding);
}
var sponsor = package.sponsor;
$(".sponsor").remove();
else {
$("#sponsor").html(sponsor.name);
- $("#sponsor-link").href(sponsor.address);
+ $("#sponsor-href").href(sponsor.address);
}
var source = package.source;
- if (source == null)
+ if (source == null) {
$(".source").remove();
- else {
+ $(".trusted").remove();
+ } else {
$("#source-name").html(source.name);
+ if (!source.trusted)
+ $(".trusted").remove();
+
var description = source.description;
if (description == null)
$(".source-description").remove();