# --
# NoPermission.dtl - provides HTML NoPermission screen
# Copyright (C) 2001-2012 OTRS AG, http://otrs.org/
# --
# $Id: NoPermission.dtl,v 1.19 2012/11/20 15:28:18 mh Exp $
# --
# This software comes with ABSOLUTELY NO WARRANTY. For details, see
# the enclosed file COPYING for license information (AGPL). If you
# did not receive this file, see http://www.gnu.org/licenses/agpl.txt.
# --

<div class="MainBox ARIARoleMain">

    <div class="W33pc CenterBox SpacingTopLarge SpacingBottomLarge">
        <div class="WidgetSimple">
            <div class="Header">
                <h2>$Text{"Insufficient Rights"}</h2>
            </div>
            <div class="Content">
                <h4>
                    $Text{"Message"}: <span class="Error">$Data{"Message"}</span>
                </h4>

                <p class="SpacingTop">
                    $Data{"Comment"}
                </p>

                <p class="SpacingTop">
                    <a href="#" id="GoBack">$Text{"Back to the previous page"}</a>
<!--dtl:js_on_document_complete-->
<script type="text/javascript">//<![CDATA[
    $('#GoBack').bind('click', function (Event) {

        // check if an older history entry is available
        if (history.length > 1) {
        history.back();
        return false;
        }

        // if we're in a popup window, close it
        if (window.opener !== null) {
            window.close();
            return false;
        }

        // normal window, no history: no action possible
        return false;
    });
//]]></script>
<!--dtl:js_on_document_complete-->
                </p>

            </div>
        </div>
    </div>

</div>
