jQuery(document).ready(function() {
    if (jQuery(".awpdashboard").length == 1 || jQuery("table.dashboard td.right div.padded").length == 0) {
        return;
    }
    try {
        var uri = "" + (jQuery("#confluence-context-path").attr("content") || "")
                + "/plugins/approvalsworkflow/getDashboardLine.action";
        jQuery.getJSON(uri, {},
                function(response) {
                    if (response != undefined && response.include) {
                        jQuery("table.dashboard td.right div.padded:first").prepend(response.body);
                    }
                });
    } catch (e) {
        console.log(e);
    }
});


