diff --git a/pkgs/plt-services/meta/pkg-index/official/static.rkt b/pkgs/plt-services/meta/pkg-index/official/static.rkt
index b918ddaa51..7936da3107 100644
--- a/pkgs/plt-services/meta/pkg-index/official/static.rkt
+++ b/pkgs/plt-services/meta/pkg-index/official/static.rkt
@@ -80,6 +80,8 @@
'last-edit (hash-ref ht 'last-edit (current-seconds))
'versions versions-ht
'ring (hash-ref ht 'ring 2)
+ 'dependencies (hash-ref ht 'dependencies empty)
+ 'modules (hash-ref ht 'modules empty)
'tags (hash-ref ht 'tags empty)
'authors (author->list (hash-ref ht 'author "")))))
@@ -203,6 +205,9 @@
[st (if (hash-ref ht 'checksum-error)
(hash-set st ':error: #t)
st)]
+ [st (if (equal? "" (hash-ref ht 'description ""))
+ (hash-set st ':no-desc: #t)
+ st)]
[st (if (empty? conflicts)
st
(hash-set st ':conflicts: #t))])
diff --git a/pkgs/plt-services/meta/pkg-index/official/static/index.html b/pkgs/plt-services/meta/pkg-index/official/static/index.html
index 5188d1a8de..9d9e38d6f1 100644
--- a/pkgs/plt-services/meta/pkg-index/official/static/index.html
+++ b/pkgs/plt-services/meta/pkg-index/official/static/index.html
@@ -55,11 +55,14 @@
Description: | |
Tags: | |
| |
- Versions Exceptions | |
+ Versions Exceptions | |
| |
+ Dependencies | |
+ Conflicts | |
+ Modules | |
- Install this package with:
raco pkg install
or, with the 'File|Install Package...' menu option in DrRacket.
+ Install this package with:
raco pkg install
or, with the 'File|Install Package...' menu option in DrRacket.
diff --git a/pkgs/plt-services/meta/pkg-index/official/static/index.js b/pkgs/plt-services/meta/pkg-index/official/static/index.js
index ffa9018131..8af2282498 100644
--- a/pkgs/plt-services/meta/pkg-index/official/static/index.js
+++ b/pkgs/plt-services/meta/pkg-index/official/static/index.js
@@ -115,6 +115,28 @@ $( document ).ready(function() {
else {
$( "#pi_add_version_row" ).hide(); }
+ if ( (! mypkg_p) && Object.keys(pkgi['versions']).length == 1 ) {
+ $( "#pi_versions_row" ).hide(); }
+ else {
+ $( "#pi_versions_row" ).show(); }
+
+ ($( "#pi_dependencies" ).html("").append( $.map( pkgi['dependencies'], function ( pkg, i ) {
+ return [jslink(pkg, function () { update_info(pkgdb[pkg]); } ), " "]; } ) ));
+ if ( pkgi['dependencies'].length == 0 ) {
+ $( "#pi_dependencies_row" ).hide(); }
+ else {
+ $( "#pi_dependencies_row" ).show(); }
+ ($( "#pi_conflicts" ).html("").append( $.map( pkgi['conflicts'], function ( pkg, i ) {
+ return [jslink(pkg, function () { update_info(pkgdb[pkg]); } ), " "]; } ) ));
+ if ( pkgi['conflicts'].length == 0 ) {
+ $( "#pi_conflicts_row" ).hide(); }
+ else {
+ $( "#pi_conflicts_row" ).show(); }
+ ($( "#pi_modules" ).html("").append( $.map( pkgi['modules'], function ( m, i ) {
+ return [ $("").text(m[1]), " "]; } ) ));
+
+ $("#pi_install").hide();
+
active_info = pkgi; };
function submit_remove_tag ( tag ) {
@@ -382,19 +404,22 @@ $( document ).ready(function() {
return addfilterlink ( tag, tag, "possible" ); } ) ))
.appendTo('#packages_table'); }
+ var pkgdb = {};
$.getJSON( "/pkgs-all.json.gz", function( resp ) {
- var names = object_keys(resp);
+ pkgdb = resp;
+
+ var names = object_keys(pkgdb);
var snames = names.sort(function(a,b) {
return ((a < b) ? -1 : ((a > b) ? 1 : 0)); })
$.each( snames, function (name_i) {
var name = snames[name_i];
- add_package_to_list ( resp[name] ); });
+ add_package_to_list ( pkgdb[name] ); });
evaluate_search();
- if ( target_pkg && resp[target_pkg] ) {
- open_info ( resp[target_pkg] ) } });
+ if ( target_pkg && pkgdb[target_pkg] ) {
+ open_info ( pkgdb[target_pkg] ) } });
$("#login").dialog({
autoOpen: false,