# --
# AgentTicketHistory.dtl - provides HTML form for history
# Copyright (C) 2001-2012 OTRS AG, http://otrs.org/
# --
# $Id: AgentTicketHistory.dtl,v 1.27 2012/11/20 15:21:21 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="LayoutPopup ARIARoleMain">

    <div class="Header">
        <h1>
            $Text{"History of"} $Config{"Ticket::Hook"}: $QData{"TicketNumber"} - $QData{"Title","60"}
        </h1>
        <p>
            <a href="#" class="CancelClosePopup">$Text{"Cancel & close window"}</a>
        </p>
    </div>

    <div class="Content">
        <div class="WidgetSimple">
            <div class="Header">
                <h2>
                    $Text{"History Content"}
                </h2>
            </div>
            <div class="Content">
                <table class="DataTable">
                    <thead>
                        <tr>
                            <th>$Text{"Action"}</th>
                            <th>$Text{"Comment"}</th>
                            <th>$Text{"Zoom"}</th>
                            <th>$Text{"User"}</th>
                            <th>$Text{"Createtime"}</th>
                        </tr>
                    </thead>
                    <tbody>

<!-- dtl:block:Row -->
                        <tr>
                            <td>
                                $QData{"HistoryType"}
                            </td>
                            <td title="$QData{"Name"}">
                                $QData{"Name","100"}
                            </td>
                            <td>
<!-- dtl:block:NoLinkZoom -->
                                -
<!-- dtl:block:NoLinkZoom -->
<!-- dtl:block:ShowLinkZoom -->
                                <a class="LinkZoomView AsBlock" href="$Env{"Baselink"}Action=AgentTicketZoom;TicketID=$LQData{"TicketID"};ArticleID=$LQData{"ArticleID"}">$Text{"Zoom view"}</a>
<!-- dtl:block:ShowLinkZoom -->
                            </td>
                            <td>
                                $QData{"UserLogin"} ($Quote{"$Data{"UserFirstname"} $Data{"UserLastname"}","20"})
                            </td>
                            <td>
                                $TimeLong{"$Data{"CreateTime"}"}
                            </td>
                        </tr>
<!-- dtl:block:Row -->

                    </tbody>
                </table>
            </div>
        </div>
<!--dtl:js_on_document_complete-->
<script type="text/javascript">//<![CDATA[
    $('a.LinkZoomView').bind('click', function () {
        window.opener.Core.UI.Popup.FirePopupEvent('URL', { URL: $(this).attr('href')});
        window.close();
    });
//]]></script>
<!--dtl:js_on_document_complete-->
    </div>
</div>
