File: AdminCommunicationLogCommunications.tt

package info (click to toggle)
otrs2 6.0.32-6
  • links: PTS
  • area: non-free
  • in suites: bullseye
  • size: 197,336 kB
  • sloc: perl: 1,003,018; javascript: 75,060; xml: 70,883; php: 51,819; sql: 22,361; sh: 379; makefile: 51
file content (100 lines) | stat: -rw-r--r-- 4,797 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
# --
# Copyright (C) 2001-2021 OTRS AG, https://otrs.com/
# --
# This software comes with ABSOLUTELY NO WARRANTY. For details, see
# the enclosed file COPYING for license information (GPL). If you
# did not receive this file, see https://www.gnu.org/licenses/gpl-3.0.txt.
# --

<div id="CommunicationLogWidget" class="WidgetSimple">
    <div class="Header">
        <div class="WidgetAction Toggle">
            <a href="#" title="[% Translate("Show or hide the content") | html %]"><i class="fa fa-caret-right"></i><i class="fa fa-caret-down"></i></a>
        </div>
        <h2>
            [% Translate("Communication Log Details (%s)", Data.CommunicationLogCount) | html %]
        </h2>
    </div>
    <div class="Content">

        <span class="Pagination">
[% RenderBlockStart("OverviewNavBarPageNavBar") %]
            [% Data.ResultLong %]
            [% Data.SiteNavBarLong %]
[% RenderBlockEnd("OverviewNavBarPageNavBar") %]
        </span>

        <table class="DataTable" id="CommunicationLogListTable">
            <thead>
                <tr>
                    <th class="Status Center Sortable"><a href="#">[% Translate("Status") | html %]</a></th>
                    <th class="Sortable"><a href="#">[% Translate("Transport") | html %]</a></th>
                    <th class="Direction Center Sortable"><a href="#"><i class="fa fa-exchange"></i></a></th>
                    <th class="Sortable"><a href="#">[% Translate("Start Time") | html %]</a></th>
                    <th class="Sortable"><a href="#">[% Translate("End Time") | html %]</a></th>
                    <th class="Sortable"><a href="#">[% Translate("Duration") | html %]</a></th>
                </tr>
            </thead>
            <tbody>
[% RenderBlockStart("NoCommunicationLogsFound") %]
                <tr>
                    <td colspan="6">
                        [% Translate("No communication log entries found.") | html %]
                    </td>
                </tr>
[% RenderBlockEnd("NoCommunicationLogsFound") %]
[% RenderBlockStart("CommunicationLogRow") %]
                <tr class="MasterAction [% IF Data.Status == 'Failed' %]Error[% END %]">
                    <td class="Status Center" title="[% Translate(Data.Status) | html %]">
                        <a href="[% Env("Baselink") %]Action=AdminCommunicationLog;Subaction=Zoom;CommunicationID=[% Data.CommunicationID | uri %]" title="[% Data.Name | html %]" class="MasterActionLink">
                        [% IF Data.Status == 'Successful' %]
                            <i class="fa fa-check Confirmation" aria-hidden="true"></i>
                        [% ELSIF Data.Status == 'Failed' %]
                            <i class="fa fa-times Error" aria-hidden="true"></i>
                        [% ELSIF Data.Status == 'Warning' %]
                            <i class="fa fa-exclamation Warning" aria-hidden="true"></i>
                        [% ELSIF Data.Status == 'Processing' %]
                            <i class="fa fa-circle-o-notch fa-spin Warning" aria-hidden="true"></i>
                        [% END %]
                        </a>
                    </td>
                    <td>
                        [% Data.Transport | html %]
                    </td>
                    <td class="Direction Center">
                        [% IF Data.Direction == 'Incoming' %]
                        <span class="Direction Incoming" title="[% Data.Direction | html %]">
                            <i class="fa fa-long-arrow-left"></i>
                        </span>
                        [% ELSE %]
                        <span class="Direction Outgoing" title="[% Data.Direction | html %]">
                            <i class="fa fa-long-arrow-right"></i>
                        </span>
                        [% END %]
                    </td>
                    <td class="StartTime">
                        [% Data.StartTime | Localize("TimeLong") %]
                    </td>
                    <td class="EndTime">
                    [% IF Data.EndTime %]
                        [% Data.EndTime | Localize("TimeLong") %]
                    [% ELSE %]
                        -
                    [% END %]
                    </td>
                    <td class="Duration">
                    [% IF Data.Duration.defined %]
                        [% Translate("%s s", Data.Duration) | html %]
                    [% ELSE %]
                        -
                    [% END %]
                    </td>
                </tr>
[% RenderBlockEnd("CommunicationLogRow") %]
                <tr class="FilterMessage Hidden">
                    <td colspan="6">[% Translate("No matches found.") | html %]</td>
                </tr>
            </tbody>
        </table>
    </div>
</div>