]>
git.saurik.com Git - cydia.git/blob - Cydia.app/package.js
45390065b8a4e95b20c842e4f937fa6c20cdf6d7
2 "name": "MobileTerminal",
5 "name": "Allen Porter",
6 "address": "allen.porter@gmail.com"
8 "description": "this is a sample description",
9 "homepage": "http://cydia.saurik.com/terminal.html",
10 "installed": "286u-4",
11 "id": "mobileterminal",
12 "section": "Terminal Support",
15 "name": "Jay Freeman",
16 "address": "saurik@saurik.com"
19 "name": "Telesphoreo Tangelo",
20 "description": "Distribution of Unix Software for the iPhone"
26 var name
= package.name
;
27 var regarding
= encodeURIComponent("Cydia/APT: " + name
);
29 $("#name").html(name
);
30 $("#latest").html(package.latest
);
32 var author
= package.author
;
34 $(".author").remove();
36 $("#author").html(author
.name
);
37 $("#author-link").href("mailto:" + author
.address
+ "?subject=" + regarding
);
40 var description
= package.description
;
41 if (description
== null)
42 description
= package.tagline
;
44 description
= description
.replace(/\n/g, "<br/>");
45 $("#description").html(description
);
47 var homepage
= package.homepage
;
49 $(".homepage").remove();
51 $("#homepage-link").href(homepage
);
53 var installed
= package.installed
;
54 if (installed
== null)
55 $(".installed").remove();
57 $("#installed").html(installed
);
58 $("#files-link").href("cydia://files/" + id
);
63 var section
= package.section
;
65 $(".section").remove();
67 $("#section").html(package.section
);
69 var size
= package.size
;
73 $("#size").html(size
/ 1024 + " kB");
75 var maintainer
= package.maintainer
;
76 if (maintainer
== null)
77 $(".maintainer").remove();
79 $("#maintainer").html(maintainer
.name
);
80 $("#maintainer-link").href("mailto:" + maintainer
.address
+ "?subject=" + regarding
);
83 var sponsor
= package.sponsor
;
85 $(".sponsor").remove();
87 $("#sponsor").html(sponsor
.name
);
88 $("#sponsor-link").href(sponsor
.address
);
91 var source
= package.source
;
93 $(".source").remove();
95 $("#source-name").html(source
.name
);
97 var description
= source
.description
;
98 if (description
== null)
99 $(".source-description").remove();
101 $("#source-description").html(description
);