 
       plan.price + (extra_c * 49) + (Math.round(extra_p * 99))
 
-
-
   selectPlan: (plan) =>
     if plan.price?
       @chosenPlan(plan)

  appendAction: (json) =>
    # adds output to the action
    @fillActions(json.step, json.index)
    @steps()[json.step].actions()[json.index].out.push(json.out)

  # TODO: CSRF protection
  retry_build: (data, event) =>

    x = for o in @out()
      "<p class='#{o.type}'><span></span>#{@htmlEscape(o.message)}</p>"
    x.join ""

  report_build: () =>
    VM.raiseIntercomDialog('I think I found a bug in Circle at ' + window.location + '\n\n')
