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 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161
|
# --
# 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.
# --
<!-- start -->
<div class="MainBox ARIARoleMain LayoutFixedSidebar SidebarFirst">
<h1 class="InvisibleText">[% Translate("Session Management") | html %]</h1>
[% BreadcrumbPath = [
{
Name => Translate('Session Management'),
Link => Env("Action"),
},
]
%]
[% IF Data.Action == 'Detail' %]
[% USE TranslatedUserType = String(Translate(Data.UserType)) %]
[% BreadcrumbPath.push({ Name => Translate( "Detail Session View for %s (%s)", Data.UserFullname, TranslatedUserType ) })%]
[% END %]
[% INCLUDE "Breadcrumb.tt" Path = BreadcrumbPath %]
<div class="Clear"></div>
<div class="SidebarColumn">
[% RenderBlockStart("ActionList") %]
<div class="WidgetSimple">
<div class="Header">
<h2>[% Translate("Actions") | html %]</h2>
</div>
<div class="Content">
<ul class="ActionList">
[% RenderBlockStart("ActionOverview") %]
<li>
<a href="[% Env("Baselink") %]Action=[% Env("Action") %]" class="CallForAction Fullsize Center"><span><i class="fa fa-caret-left"></i>[% Translate("Go to overview") | html %]</span></a>
</li>
[% RenderBlockEnd("ActionOverview") %]
[% RenderBlockStart("ActionSummary") %]
<li>
<table class="DataTable">
<tr>
<td>[% Translate("All sessions") | html %]</td>
<td>[% Data.Counter | html %]</td>
</tr>
<tr>
<td>[% Translate("Agent sessions") | html %]</td>
<td>[% Data.UserSession | html %]</td>
</tr>
<tr>
<td>[% Translate("Customer sessions") | html %]</td>
<td>[% Data.CustomerSession | html %]</td>
</tr>
<tr>
<td>[% Translate("Unique agents") | html %]</td>
<td>[% Data.UserSessionUniq | html %]</td>
</tr>
<tr>
<td>[% Translate("Unique customers") | html %]</td>
<td>[% Data.CustomerSessionUniq | html %]</td>
</tr>
</table>
<a href="[% Env("Baselink") %]Action=[% Env("Action") %];Subaction=KillAll;WantSessionID=[% Env("SessionID") %];[% Env("ChallengeTokenParam") | html %]" id="KillAllSessions" class="CallForAction LittleSpacingTop Fullsize Center"><span><i class="fa fa-trash-o"></i> [% Translate("Kill all sessions") | html %]</span></a>
</li>
[% RenderBlockEnd("ActionSummary") %]
[% RenderBlockStart("ActionKillSession") %]
<li>
<a href="[% Env("Baselink") %]Action=[% Env("Action") %];Subaction=Kill;WantSessionID=[% Data.SessionID %];[% Env("ChallengeTokenParam") | html %]" id="KillThisSession" class="CallForAction Fullsize Center"><span><i class="fa fa-power-off"></i> [% Translate("Kill this session") | html %]</span></a>
</li>
[% RenderBlockEnd("ActionKillSession") %]
</ul>
</div>
</div>
[% RenderBlockEnd("ActionList") %]
[% RenderBlockStart("Filter") %]
<div class="WidgetSimple">
<div class="Header">
<h2><label for="FilterSessions">[% Translate("Filter for Sessions") | html %]</label></h2>
</div>
<div class="Content">
<input type="text" id="FilterSessions" class="FilterBox" placeholder="[% Translate("Just start typing to filter...") | html %]" name="FilterSessions" value="" title="[% Translate("Filter for sessions") | html %]">
</div>
</div>
[% RenderBlockEnd("Filter") %]
</div>
<div class="ContentColumn">
<div class="WidgetSimple">
[% RenderBlockStart("Overview") %]
<div class="Header">
<h2>[% Translate("List") | html %]</h2>
</div>
<div class="Content">
<table class="DataTable" id="Sessions">
<thead>
<tr>
<th>[% Translate("Session") | html %]</th>
<th>[% Translate("Type") | html %]</th>
<th>[% Translate("User") | html %]</th>
<th>[% Translate("Kill") | html %]</th>
</tr>
</thead>
<tbody>
[% RenderBlockStart("Session") %]
<tr>
<td>
<a class="AsBlock" href="[% Env("Baselink") %]Action=AdminSession;Subaction=Detail;WantSessionID=[% Data.SessionID | uri %]">[% Data.SessionID | html %]</a>
</td>
<td>[% Data.UserType | html %]</td>
<td>[% Data.UserFullname | html %]</td>
<td>
<a class="AsBlock" href="[% Env("Baselink") %]Action=AdminSession;Subaction=Kill;WantSessionID=[% Data.SessionID | uri %];[% Env("ChallengeTokenParam") | html %]">[% Translate("Kill this session") | html %]</a>
</td>
</tr>
[% RenderBlockEnd("Session") %]
<tr class="FilterMessage Hidden">
<td colspan="4">[% Translate("No matches found.") | html %]</td>
</tr>
</tbody>
</table>
</div>
[% RenderBlockEnd("Overview") %]
[% RenderBlockStart("DetailView") %]
<div class="Header">
<h2>[% Translate("Detail View for SessionID: %s - %s", Data.SessionID, Data.UserFullname) | html %]</h2>
</div>
<div class="Content">
<table class="DataTable">
<thead>
<tr>
<th>[% Translate("Key") | html %]</th>
<th>[% Translate("Value") | html %]</th>
</tr>
</thead>
<tbody>
[% RenderBlockStart("DetailViewRow") %]
<tr>
<td>[% Data.Key | html %]</td>
<td>[% Data.Value | html %]</td>
</tr>
[% RenderBlockEnd("DetailViewRow") %]
</tbody>
</table>
</div>
[% RenderBlockEnd("DetailView") %]
</div>
</div>
<div class="Clear"></div>
</div>
<!-- end -->
|