Sha256: 071b1106923f864d5da92022ec8485399d2677dc1e54339b9145f6cafa107b13

Contents?: true

Size: 570 Bytes

Versions: 1

Compression:

Stored size: 570 Bytes

Contents

$(document).ready ->
  $.getJSON "#{WebTools.location}/version", (data) ->
    error = data['_error']
    if error?
      console.log(data)
      alert(error + ' (see console log for stack)')
    else
      thead = $('#versionHeaders')
      $(data.headers).each (idx, element) ->
        thead.append("<th title='#{element[1]}'>#{element[0]}</th>")
      tbody = $('#versionTable')
      $.each data.report, (k, v) ->
        tbody.append("<tr><th>#{k}</th><td>#{v[0]}</td><td>#{v[1]}</td></tr>")
      $('#versionTimestamp').html("Report generated #{data.timestamp}")

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
maglev-webtools-0.2.1 public/javascript/webtools/version.coffee