| 1 |
<TMPL_INCLUDE NAME="header.tpl"> |
| 2 |
<TMPL_IF NAME="INSTANCE_NAME"> |
| 3 |
<title><TMPL_VAR NAME="INSTANCE_NAME"> 2nd Factor</title> |
| 4 |
<TMPL_ELSE> |
| 5 |
<title>LemonLDAP::NG 2nd Factor</title> |
| 6 |
</TMPL_IF> |
| 7 |
</head> |
| 8 |
|
| 9 |
<body ng-app="llngSessionsExplorer" ng-controller="SessionsExplorerCtrl" ng-csp> |
| 10 |
|
| 11 |
<TMPL_INCLUDE NAME="menubar.tpl"> |
| 12 |
<div id="content" class="row container-fluid"> |
| 13 |
<div id="pleaseWait" ng-show="waiting"><span trspan="waitingForDatas"></span></div> |
| 14 |
<aside id="left" class="col-lg-4 col-md-4 col-sm-5 col-xs-12 scrollable " ng-class="{'hidden-xs':!showT}" role="complementary"> |
| 15 |
<div class="navbar navbar-default"> |
| 16 |
<div class="navbar-collapse"> |
| 17 |
<ul class="nav navbar-nav" role="grid"> |
| 18 |
<form class="navbar-form" name="filterForm"> |
| 19 |
<div class="form-check "> |
| 20 |
<TMPL_LOOP NAME=SFATYPES> |
| 21 |
<input type="checkbox" ng-model="sfatypes.<TMPL_VAR NAME=SFATYPE>" class="form-check-input" ng-change="search2FA()"/> |
| 22 |
<label class="form-check-label" for="<TMPL_VAR NAME=SFATYPE>Check"><TMPL_VAR NAME=SFATYPE></label> |
| 23 |
<TMPL_UNLESS NAME="__last__"> & </TMPL_UNLESS> |
| 24 |
</TMPL_LOOP> |
| 25 |
</div> |
| 26 |
</form> |
| 27 |
</ul> |
| 28 |
<div class="col-lg-6 col-md-6 col-sm-8 col-xs-14" > |
| 29 |
<form class="navbar-form" role="search"> |
| 30 |
<div class="input-group add-on"> |
| 31 |
<input class="form-control" trplaceholder="search" type="text" ng-model="searchString" ng-init="" ng-keyup="search2FA()"/> |
| 32 |
<div class="input-group-btn"> |
| 33 |
<button class="btn btn-default" ng-click="search2FA(1)"><i class="glyphicon glyphicon-search"></i></button> |
| 34 |
</div> |
| 35 |
</div> |
| 36 |
</form> |
| 37 |
</div> |
| 38 |
</div> |
| 39 |
</div> |
| 40 |
|
| 41 |
<!-- Tree --> |
| 42 |
|
| 43 |
<div ng-show="data.length!=0" class="text-center"><p class="badge">{{total}} {{translate('session_s')}}</p></div> |
| 44 |
<div class="region region-sidebar-first"> |
| 45 |
<section id="block-superfish-1" class="block block-superfish clearfix"> |
| 46 |
<div ui-tree data-drag-enabled="false" id="tree-root"> |
| 47 |
<div ng-show="data.length==0" class="center"> |
| 48 |
<span class="label label-warning">{{translate('noData')}}</span> |
| 49 |
</div> |
| 50 |
<ol ui-tree-nodes="" ng-model="data"> |
| 51 |
<li ng-repeat="node in data track by node.id" ui-tree-node ng-include="'nodes_renderer.html'" collapsed="true"></li> |
| 52 |
</ol> |
| 53 |
</div> |
| 54 |
</section> |
| 55 |
</div> |
| 56 |
<div class="hresizer hidden-xs" resizer="vertical" resizer-left="#left" resizer-right="#right"></div> |
| 57 |
</aside> |
| 58 |
|
| 59 |
<!-- Right(main) div --> |
| 60 |
<div id="right" class="col-lg-8 col-md-8 col-sm-7 col-xs-12 scrollable" ng-class="{'hidden-xs':showT&&!showM}"> |
| 61 |
<span class="visible-xs"> |
| 62 |
<div ng-if="currentSession" class="lmmenu navbar navbar-default" ng-class="{'hidden-xs':!showM}"> |
| 63 |
<div class="navbar-collapse" ng-class="{'collapse':!showM}" id="formmenu"> |
| 64 |
<ul class="nav navbar-nav"> |
| 65 |
<li uib-dropdown class="visible-xs"> |
| 66 |
<a id="langmenu" name="menu" uib-dropdown-toggle data-toggle="dropdown" role="button" aria-haspopup="true" aria-expanded="false">Menu <span class="caret"></span></a> |
| 67 |
<ul uib-dropdown-menu aria-labelled-by="langmenu" role="grid"> |
| 68 |
<li ng-repeat="link in links"><a href="{{link.target}}" role="row"><i ng-if="link.icon" class="glyphicon glyphicon-{{link.icon}}"></i> {{translate(link.title)}}</a></li> |
| 69 |
<li ng-repeat="menulink in menulinks"><a href="{{menulink.target}}" role="row"><i ng-if="menulink.icon" class="glyphicon glyphicon-{{menulink.icon}}"></i> {{translate(menulink.title)}}</a></li> |
| 70 |
<li ng-include="'languages.html'"></li> |
| 71 |
<TMPL_IF NAME="INSTANCE_NAME"> |
| 72 |
<li><a href="https://lemonldap-ng.org"><TMPL_VAR NAME="INSTANCE_NAME"></a></li> |
| 73 |
</TMPL_IF> |
| 74 |
</ul> |
| 75 |
</li> |
| 76 |
</ul> |
| 77 |
</div> |
| 78 |
</div> |
| 79 |
</span> |
| 80 |
<div class="panel panel-default" ng-hide="currentSession===null"> |
| 81 |
<div class="panel-heading"> |
| 82 |
<h1 class="panel-title text-center">{{translate("sessionTitle")}} {{currentSession.id}}</h1> |
| 83 |
</div> |
| 84 |
<div class="panel-body"> |
| 85 |
<div class="alert alert-info"> |
| 86 |
<strong>{{translate("sessionStartedAt")}}</strong> |
| 87 |
{{localeDate(currentSession._utime)}} |
| 88 |
</div> |
| 89 |
<div ng-model="currentSession.nodes"> |
| 90 |
<div ng-repeat="node in currentSession.nodes" ng-include="'session_attr.html'"></div> |
| 91 |
</div> |
| 92 |
</div> |
| 93 |
</div> |
| 94 |
</div> |
| 95 |
</div> |
| 96 |
|
| 97 |
<script type="text/ng-template" id="session_attr.html"> |
| 98 |
<div class="panel panel-default" ng-if="node.nodes"> |
| 99 |
<div class="panel-heading"> |
| 100 |
<h2 class="panel-title text-center">{{translateP(node.title)}}</h2> |
| 101 |
</div> |
| 102 |
<table class="table table-striped" ng-model="node.nodes"> |
| 103 |
<tr ng-repeat="node in node.nodes" ng-include="'session_attr.html'"></tr> |
| 104 |
</table> |
| 105 |
</div> |
| 106 |
<div ng-if="!node.nodes" > |
| 107 |
<th class="col-md-3" ng-if="!node.sfrow">{{translate(node.title)}}</th> |
| 108 |
<td class="data-{{node.epoch}}" ng-if="node.sfrow" >{{node.title}}</td> |
| 109 |
<th class="col-md-3" ng-if="!node.sfrow">{{translate(node.value)}}</th> |
| 110 |
<td class="col-md-3 data-{{node.epoch}}" ng-if="node.sfrow" >{{node.value}}</td> |
| 111 |
<th class="col-md-3" ng-if="!node.sfrow">{{translate(node.epoch)}}</th> |
| 112 |
<td class="col-md-3 data-{{node.epoch}}" ng-if="node.sfrow">{{localeDate(node.epoch)}}</td> |
| 113 |
<td class="data-{{node.epoch}}"> |
| 114 |
<span ng-if="node.sfrow" class="link text-danger glyphicon glyphicon-minus-sign" ng-click="delete2FA(node.type, node.epoch)"></span> |
| 115 |
</td> |
| 116 |
</div> |
| 117 |
</script> |
| 118 |
|
| 119 |
<script type="text/ng-template" id="nodes_renderer.html"> |
| 120 |
<div ui-tree-handle class="tree-node tree-node-content panel-info" ng-class="{'bg-info':this.$modelValue===currentScope.$modelValue,'tree-node-default':this.$modelValue!==currentScope.$modelValue}"> |
| 121 |
<span ng-if="node.value"> |
| 122 |
<a id="a-{{node.value}}" class="btn btn-node btn-sm" ng-click="stoggle(this)"> |
| 123 |
<span class="glyphicon" ng-class="{'glyphicon-chevron-right': collapsed,'glyphicon-chevron-down': !collapsed}"></span> |
| 124 |
</a> |
| 125 |
<span id="s-{{node.value}}" ng-click="stoggle(this)">{{node.title || node.value}} <span class="badge">{{node.count}}</span></span> |
| 126 |
</span> |
| 127 |
<span ng-if="node.session"> |
| 128 |
<a class="btn btn-node btn-sm" ng-click="displaySession(this)"> |
| 129 |
<span class="glyphicon glyphicon-eye-open"></span> |
| 130 |
</a> |
| 131 |
<span id="s-{{node.session}}" ng-click="displaySession(this)">{{node.userId}}</span> |
| 132 |
</span> |
| 133 |
</div> |
| 134 |
<ol ui-tree-nodes="" ng-model="node.nodes" ng-class="{hidden: collapsed}"> |
| 135 |
<li ng-repeat="node in node.nodes track by node.id" ui-tree-node ng-include="'nodes_renderer.html'" collapsed="true"></li> |
| 136 |
</ol> |
| 137 |
</script> |
| 138 |
|
| 139 |
<TMPL_INCLUDE NAME="scripts.tpl"> |
| 140 |
|
| 141 |
<!-- //if:jsminified |
| 142 |
<script type="text/javascript" src="<TMPL_VAR NAME="STATIC_PREFIX">js/2ndfa.min.js"></script> |
| 143 |
//else --> |
| 144 |
<script type="text/javascript" src="<TMPL_VAR NAME="STATIC_PREFIX">js/2ndfa.js"></script> |
| 145 |
<!-- //endif --> |
| 146 |
|
| 147 |
<TMPL_INCLUDE NAME="footer.tpl"> |