             text:                order.number
             title:               utils.i18n 'order_title'
         ],
-        $('<td/>').append $ '<span/>', text: getStatusText i
+        $('<td/>').append $ '<span/>', text: getStatusText order
       ]
     )
     # Order had an error; I suppose I should tell the user.

    footerF.find('button:first-child').attr(
      disabled: 'disabled'
      title:    utils.i18n 'refreshing_title'
    ).html(utils.i18n 'refreshing_text')
  # Add the clear button if badges are visibile; they can be distracting.
  if updates
    footerF.append(

    ).appendTo tbody
    footer.find('#refreshLink').remove()
  # Otherwise; let's create a row for each order.
  for order in ext.orders
    tbody.append(
      $.prototype.append.apply $('<tr/>'), [
        $.prototype.append.apply $('<td/>'), [
