+ $("#settings").href("cydia://package-settings/" + idc);
+
+ var warnings = package.warnings;
+ var length = warnings == null ? 0 : warnings.length;
+ if (length == 0)
+ $(".warnings").remove();
+ else {
+ var parent = $("#warnings");
+ var child = $("#warning");
+ child.remove();
+
+ for (var i = 0; i != length; ++i) {
+ var clone = child.clone(true);
+ parent.append(clone);
+ clone.xpath("label").html($.xml(warnings[i]));
+ }
+ }
+
+ var applications = package.applications;
+ var length = applications == null ? 0 : applications.length;
+
+ var child = $("#application");
+ child.remove();
+
+ /*if (length != 0) {
+ var parent = $("#actions");
+
+ for (var i = 0; i != length; ++i) {
+ var application = applications[i];
+ var clone = child.clone(true);
+ parent.append(clone);
+ clone.href("cydia://launch/" + application[0]);
+ clone.xpath("label").html("Run " + $.xml(application[1]));
+ clone.xpath("img").src(application[2]);
+ }
+ }*/
+
+ var purposes = package.purposes;
+ var commercial = false;
+ var _console = false;
+ if (purposes != null)
+ for (var i = 0, e = purposes.length; i != e; ++i) {
+ var purpose = purposes[i];
+ if (purpose == "commercial")
+ commercial = true;
+ else if (purpose == "console")
+ _console = true;
+ }
+ if (!commercial)
+ $(".commercial").remove();
+ if (!_console)
+ $(".console").remove();
+