show user session stats
all roles having read-user-stats enabled can show a list of user sessions (last login, creation times, and active flag) to find unused accounts which could be deactivated.
This commit is contained in:
@@ -51,6 +51,10 @@
|
||||
<div><a href="image.cgi?project_id=<TMPL_VAR project_id>&studio_id=<TMPL_VAR default_studio_id>&search=<TMPL_VAR .presets.user>"><i class="fas fa-images"></i> <TMPL_VAR .loc.images></a></div>
|
||||
</TMPL_IF>
|
||||
|
||||
<TMPL_IF .allow.read_user_stats>
|
||||
<div><a href="user-stats.cgi?project_id=<TMPL_VAR project_id>&studio_id=<TMPL_VAR default_studio_id>&action=show-user-stats"><i class="fas fa-images"></i> <TMPL_VAR .loc.user-stats></a></div>
|
||||
</TMPL_IF>
|
||||
|
||||
<div title="<TMPL_VAR .loc.profile>"><a href="user-settings.cgi?project_id=<TMPL_VAR project_id>&studio_id=<TMPL_VAR default_studio_id>"><i class="fas fa-cog"></i> <TMPL_VAR .loc.profile></a></div>
|
||||
|
||||
<div title="<TMPL_VAR .loc.help>"><a href="help.cgi?project_id=<TMPL_VAR project_id>&studio_id=<TMPL_VAR default_studio_id>"><i class="fas fa-info"></i> <TMPL_VAR .loc.help></a></div>
|
||||
|
||||
67
website/agenda/planung/templates/user-active.html
Normal file
67
website/agenda/planung/templates/user-active.html
Normal file
@@ -0,0 +1,67 @@
|
||||
<script src="js/jquery.tablesorter.min.js"></script>
|
||||
<script src="js/jquery.tablesorter.widgets.min.js"></script>
|
||||
<script src="js/jquery.tablesorter.scroller.js"></script>
|
||||
|
||||
<script type="text/javascript">
|
||||
$(document).ready(
|
||||
function(){
|
||||
$('table#user_stats_table').tablesorter({
|
||||
widgets: ["filter"],
|
||||
usNumberFormat : false
|
||||
});
|
||||
}
|
||||
);
|
||||
</script>
|
||||
|
||||
<style>
|
||||
div.col {
|
||||
float:left;
|
||||
width:10px;
|
||||
height:10px;
|
||||
}
|
||||
table#user_stats_table input{
|
||||
max-width:6em;
|
||||
}
|
||||
</style>
|
||||
|
||||
<h2><TMPL_VAR loc.title></h2>
|
||||
<hr>
|
||||
<TMPL_INCLUDE status.html>
|
||||
|
||||
<button onclick="load('user-stats.cgi?project_id=<TMPL_VAR .project_id>&studio_id=<TMPL_VAR .studio_id>&action=show-user-stats')">
|
||||
<TMPL_VAR .loc.button_show_user_stats>
|
||||
</button>
|
||||
|
||||
<form method="post">
|
||||
<input type="hidden" name="project_id" value="<TMPL_VAR project_id>">
|
||||
<input type="hidden" name="studio_id" value="<TMPL_VAR studio_id>">
|
||||
</form>
|
||||
|
||||
<table id="user_stats_table">
|
||||
<thead>
|
||||
<tr>
|
||||
<th><TMPL_VAR loc.label_login></th>
|
||||
<th><TMPL_VAR loc.label_full_name></th>
|
||||
<th><TMPL_VAR loc.label_last_login></th>
|
||||
<th><TMPL_VAR loc.label_login_count></th>
|
||||
<th><TMPL_VAR loc.label_disabled></th>
|
||||
<th><TMPL_VAR loc.label_created_at></th>
|
||||
<th><TMPL_VAR loc.label_created_by></th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<TMPL_LOOP user_stats>
|
||||
<tr>
|
||||
<td><TMPL_VAR login></td>
|
||||
<td><TMPL_VAR full_name></td>
|
||||
<td><TMPL_VAR last_login></td>
|
||||
<td><TMPL_VAR login_count></td>
|
||||
<td><TMPL_VAR disabled></td>
|
||||
<td><TMPL_VAR created_at></td>
|
||||
<td><TMPL_VAR created_by></td>
|
||||
</tr>
|
||||
</TMPL_LOOP>
|
||||
</tbody>
|
||||
</table>
|
||||
</body>
|
||||
</html>
|
||||
@@ -28,6 +28,10 @@ table#user_stats_table input{
|
||||
<hr>
|
||||
<TMPL_INCLUDE status.html>
|
||||
|
||||
<button onclick="load('user-stats.cgi?project_id=<TMPL_VAR .project_id>&studio_id=<TMPL_VAR .studio_id>&action=show-active-users');">
|
||||
<TMPL_VAR .loc.button_show_active_users>
|
||||
</button>
|
||||
|
||||
<form method="post">
|
||||
<input type="hidden" name="project_id" value="<TMPL_VAR project_id>">
|
||||
<input type="hidden" name="studio_id" value="<TMPL_VAR studio_id>">
|
||||
@@ -36,15 +40,15 @@ table#user_stats_table input{
|
||||
<table id="user_stats_table">
|
||||
<thead>
|
||||
<tr>
|
||||
<th><TMPL_VAR loc.label_user></td>
|
||||
<th><TMPL_VAR loc.label_score></td>
|
||||
<th><TMPL_VAR loc.label_modified_at></td>
|
||||
<th><TMPL_VAR loc.label_create_events></td>
|
||||
<th><TMPL_VAR loc.label_update_events></td>
|
||||
<th><TMPL_VAR loc.label_delete_events></td>
|
||||
<th><TMPL_VAR loc.label_create_series></td>
|
||||
<th><TMPL_VAR loc.label_update_series></td>
|
||||
<th><TMPL_VAR loc.label_delete_series></td>
|
||||
<th><TMPL_VAR loc.label_user></th>
|
||||
<th><TMPL_VAR loc.label_score></th>
|
||||
<th><TMPL_VAR loc.label_modified_at></th>
|
||||
<th><TMPL_VAR loc.label_create_events></th>
|
||||
<th><TMPL_VAR loc.label_update_events></th>
|
||||
<th><TMPL_VAR loc.label_delete_events></th>
|
||||
<th><TMPL_VAR loc.label_create_series></th>
|
||||
<th><TMPL_VAR loc.label_update_series></th>
|
||||
<th><TMPL_VAR loc.label_delete_series></th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
|
||||
Reference in New Issue
Block a user