#batch-info{data: {batch: @batch.to_json}} -if @batch.status == "Queued" %h6.batch-message-queued Data is queued for download from Canvas. -if @batch.status == "Completed" .alert.alert-success %button.close{"data-dismiss" => "alert", :type => "button"} × %span.batch-message-completed Data successfully downloaded from Canvas. -if @batch.status == "Started" %h6.batch-message-started Downloading data from Canvas .progress.progress-striped.active .bar{:style => "width: #{@batch.percent_complete}%;"} -if @batch.status == "Error" .alert.alert-block.alert-error %button.close{"data-dismiss" => "alert", :type => "button"} × %h6.batch-message-error Data failed to download from Canvas = @batch.message