Skip to content

Commit 600e408

Browse files
authored
Merge pull request astropy#268 from apooravc/enumerate-pkgs
Fix astropy#262: Add total number of affiliated packages
2 parents d5f3c11 + abd744a commit 600e408

2 files changed

Lines changed: 3 additions & 2 deletions

File tree

‎affiliated/index.html‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@ <h1>Installing Affiliated Packages</h1>
8282
<h1>Affiliated Packages Registry</h1>
8383
<p>The following table lists all currently registered affiliated packages. They are determined from the <a href="http://www.astropy.org/affiliated/registry.json">json file</a>, which is the actual authoritative registry.</p>
8484
<!-- <h3><u>Affiliated Packages</u></h3>-->
85-
85+
<p>Total number of affiliated packages: <strong id="total-pkgs"></strong></p>
8686

8787
<table border="1" class="docutils" id="accepted-package-table">
8888
<colgroup>

‎js/functions.js‎

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -295,7 +295,8 @@ function populateTable(tableid, data) {
295295
for (i=0;i<(ncols - 1);i++) { row.insertCell(i + 1).innerHTML = ' '; }
296296
} else {
297297
var pkgs = data.packages;
298-
298+
//inserting total number of affiliated packages at top of table
299+
$("#total-pkgs").text(pkgs.length);
299300
//First figure out the correct order if we sort on the name
300301
var nmarr = new Array(pkgs.length);
301302
var sortorder = new Array(pkgs.length);

0 commit comments

Comments
 (0)