Client OS selector

This commit is contained in:
Luke Dashjr 2012-04-10 18:34:33 -04:00
parent 8d01072588
commit 97ce274949
7 changed files with 147 additions and 13 deletions

View file

@ -10,13 +10,16 @@ module Jekyll
hid = h['id']
td = h.fetch('td', 'td')
for c in page['clients']
if c.has_key?('incomplete')
next
end
ci = c[hid]
curi = c.fetch(hid + '_uri', nil)
r += '<' + td
r += '<' + td + ' class="clients ' + c['os']
if h.has_key?(ci)
r += ' class="' + h[ci] + '"'
r += ' ' + h[ci]
end
r += '>'
r += '">'
if curi
r += "<a href='" + curi + "'>" + ci + "</a>"
elsif ci