This commit is contained in:
Jay McCarthy 2014-09-23 20:46:21 -04:00
parent e88bf026e0
commit 66d79cdb57
3 changed files with 18 additions and 10 deletions

View File

@ -90,7 +90,6 @@
<tr> <tr>
<th></th> <th></th>
<th>Package</th> <th>Package</th>
<th>Docs</th>
<th>Description</th> <th>Description</th>
<th>Tags</th> <th>Tags</th>
<th>Build</th> <th>Build</th>
@ -102,7 +101,7 @@
<div id="footer"> <div id="footer">
Powered by <a href="http://racket-lang.org">Racket</a> and a Powered by <a href="http://racket-lang.org">Racket</a> and a
mess of ugly JS. Written mess of ugly JS. Written
by <a href="http://faculty.cs.byu.edu/~jay">Jay McCarthy</a>. by <a href="http://jeapostrophe.github.io">Jay McCarthy</a>.
<a href="/atom.xml">Atom</a> feed available. <a href="/atom.xml">Atom</a> feed available.
</div> </div>
</div> </div>

View File

@ -472,14 +472,15 @@ $( document ).ready(function() {
.append( jslink( value['name'], function () { open_info ( value ); }) ) .append( jslink( value['name'], function () { open_info ( value ); }) )
.append($('<span>').attr("class","authors").html("").append( $.map( value['authors'], function ( author, i ) { .append($('<span>').attr("class","authors").html("").append( $.map( value['authors'], function ( author, i ) {
return addfilterlink ( author, "author:" + author, "possible" ); } ) )), return addfilterlink ( author, "author:" + author, "possible" ); } ) )),
$('<td>').html("").append( $.map( value['build']['docs'], function ( doc, i ) { $('<td>').text( value['description'] )
var dl; .append($('<span>').attr("class","docs").html(value['build']['docs'].length > 0 ? "Docs: " : "")
if ( doc[2] ) { .append( $.map( value['build']['docs'], function ( doc, i ) {
dl = $('<a>', { href: build_host + doc[2] } ).html(doc[1]); } var dl;
else { if ( doc[2] ) {
dl = $('<del>').html(doc[1]); } dl = $('<a>', { href: build_host + doc[2] } ).html(doc[1]); }
return $('<span>').append(dl, " ") } ) ), else {
$('<td>').text( value['description'] ), dl = $('<del>').html(doc[1]); }
return $('<span>').append(dl, " ") } ) )),
$('<td>').append( $.map( value['tags'], function ( tag, i ) { $('<td>').append( $.map( value['tags'], function ( tag, i ) {
return addfilterlink ( tag, tag, "possible" ); } ) ), return addfilterlink ( tag, tag, "possible" ); } ) ),
bstatus ); } bstatus ); }

View File

@ -123,9 +123,14 @@ div.delete {
#footer { #footer {
width: 100%; width: 100%;
text-align: right; text-align: right;
color: white;
background: black; /* #FFCC66; */ background: black; /* #FFCC66; */
padding-right: 3em; padding-right: 3em;
} }
#footer a {
color: white;
font-weight: bold;
}
div.install { div.install {
width: 50%; width: 50%;
@ -169,6 +174,9 @@ tr#pi_delete_row td {
display: block; display: block;
color: black; color: black;
} }
.packages .docs {
display: block;
}
.packages tr td:nth-child(6) { .packages tr td:nth-child(6) {
text-align: center; text-align: center;
} }