forked from hummypkg/webif
47 lines
635 B
Plaintext
47 lines
635 B
Plaintext
|
#!/mod/bin/jimsh
|
||
|
|
||
|
source /mod/var/mongoose/lib/setup
|
||
|
|
||
|
puts {
|
||
|
<script type=text/javascript src=/js/packages.js></script>
|
||
|
|
||
|
<style type=text/css>
|
||
|
button.install
|
||
|
{
|
||
|
display: none;
|
||
|
background-image: none;
|
||
|
background: #ccff99;
|
||
|
}
|
||
|
button.remove
|
||
|
{
|
||
|
display: none;
|
||
|
background-image: none;
|
||
|
background: #ff6666;
|
||
|
}
|
||
|
button.upgrade
|
||
|
{
|
||
|
display: none;
|
||
|
}
|
||
|
</style>
|
||
|
|
||
|
<div id=pkgtabs>
|
||
|
<ul>
|
||
|
<li>
|
||
|
<a href=/cgi-bin/pkg.jim?type=inst>
|
||
|
<span>Installed</span>
|
||
|
</a>
|
||
|
</li><li>
|
||
|
<a href=/cgi-bin/pkg.jim?type=upgr>
|
||
|
<span>Upgrades</span>
|
||
|
</a>
|
||
|
</li><li>
|
||
|
<a href=/cgi-bin/pkg.jim?type=avail>
|
||
|
<span>Available</span>
|
||
|
</a>
|
||
|
</li>
|
||
|
</ul>
|
||
|
</div>
|
||
|
}
|
||
|
|
||
|
|