public function get_status_display($statuscode, $backupid) {
        if ($statuscode == backup::STATUS_AWAITING || $statuscode == backup::STATUS_EXECUTING) {  // Inprogress.
            $progresssetup = array(
                    'backupid' => $backupid,
                    'width' => '100'
            );
            $status = $this->render_from_template('core/async_backup_progress', $progresssetup);
        } else if ($statuscode == backup::STATUS_FINISHED_ERR) { // Error.
            $icon = $this->output->render(new \pix_icon('i/delete', get_string('failed', 'backup')));
            $status = \html_writer::span($icon, 'action-icon');
        } else if ($statuscode == backup::STATUS_FINISHED_OK) { // Complete.
            $icon = $this->output->render(new \pix_icon('i/checked', get_string('successful', 'backup')));
            $status = \html_writer::span($icon, 'action-icon');
        }

        return $status;
    }