             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(

# If no existing tab exists a new one is simply created.
selectOrCreateTab = (url, callback) ->
  chrome.windows.getCurrent (win) ->
    chrome.tabs.query windowId: win.id, (tabs) ->
      # Try to find an existing tab.
      for tab in tabs
        if tab.url.indexOf(url) is 0
          existingTab = tab
          break
      if existingTab
        # Found one! Now to select it.
        chrome.tabs.update existingTab.id, selected: yes
        callback? no
      else
        # Ach well, let's just create a new one.
