Commit ec192c9f authored by Paul Wise's avatar Paul Wise

Add links to the popcon data CGI

This is so that researchers who want access don't
have to ask questions about data access on the list.
parent 507d0361
......@@ -77,7 +77,10 @@ $hlght_date_url = urlencode($hlght_date);
print html_h("Popularity contest statistics for $packages", 2);
?>
<protect>
<p><img src="/cgi-bin/popcon-png?packages=<?php echo $packages_url ?>&amp;show_installed=<?php echo $show_installed ?>&amp;show_vote=<?php echo $show_vote ?>&amp;show_old=<?php echo $show_old ?>&amp;show_recent=<?php echo $show_recent ?>&amp;show_nofiles=<?php echo $show_nofiles ?>&amp;want_percent=<?php echo $want_percent ?>&amp;want_legend=<?php echo $want_legend ?>&amp;want_ticks=<?php echo $want_ticks ?>&amp;from_date=<?php echo $from_date_url ?>&amp;to_date=<?php echo $to_date_url ?>&amp;hlght_date=<?php echo $hlght_date_url ?>&amp;date_fmt=<?php echo $date_fmt_url ?>" alt="" /></p>
<p>
<img src="/cgi-bin/popcon-png?packages=<?php echo $packages_url ?>&amp;show_installed=<?php echo $show_installed ?>&amp;show_vote=<?php echo $show_vote ?>&amp;show_old=<?php echo $show_old ?>&amp;show_recent=<?php echo $show_recent ?>&amp;show_nofiles=<?php echo $show_nofiles ?>&amp;want_percent=<?php echo $want_percent ?>&amp;want_legend=<?php echo $want_legend ?>&amp;want_ticks=<?php echo $want_ticks ?>&amp;from_date=<?php echo $from_date_url ?>&amp;to_date=<?php echo $to_date_url ?>&amp;hlght_date=<?php echo $hlght_date_url ?>&amp;date_fmt=<?php echo $date_fmt_url ?>" alt="" /><br />
<a href="/cgi-bin/popcon-data?packages=<?php echo $packages_url ?>&amp;from_date=<?php echo $from_date_url ?>&amp;to_date=<?php echo $to_date_url ?>" title="JSON">Raw data for the graph</a>
</p>
</protect>
<?php
}
......
......@@ -155,6 +155,8 @@ function print_popcon($package)
print html_p(html_a($img, $popcon_url . rawurlencode($binaries) . $popcon_instonly));
#print html_p("<a href=\"/cgi-bin/popcon-png?want_percent=on&amp;packages=" . rawurlencode($binaries) . $popcon_instonly . "\">percent submitters popcon graph for $package</a>");
print html_a("Raw data for the graph", "/cgi-bin/popcon-data?packages=" . rawurlencode($binaries), "", "JSON");
print html_p(html_a("Maintainer page", "developer.php?package=$package", ""));
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment