Skip to content

Commit 1932959

Browse files
committed
Add Username field to datalog view
1 parent c3aaf16 commit 1932959

File tree

3 files changed

+6
-0
lines changed

3 files changed

+6
-0
lines changed

interface/web/monitor/dataloghistory_view.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,7 @@
5050
$record = $app->db->queryOneRecord('SELECT * FROM sys_datalog WHERE datalog_id = ?', $id);
5151

5252
$out['id'] = $id;
53+
$out['username'] = $record['user'];
5354

5455
$out['timestamp'] = date($app->lng('conf_format_datetime'), $record['tstamp']);
5556
$out['table'] = $record['dbtable'];

interface/web/monitor/lib/lang/en_dataloghistory_view.lng

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,4 +23,5 @@ $wb['new_txt'] = 'New';
2323
$wb['btn_cancel_txt'] = 'Back';
2424
$wb['undo_txt'] = 'Undo action';
2525
$wb['undo_confirmation_txt'] = 'Do you really want to undo this action?';
26+
$wb['username_txt'] = 'Username';
2627
?>

interface/web/monitor/templates/dataloghistory_view.htm

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,10 @@ <h1><tmpl_var name="list_head_txt"></h1>
1212
</tr>
1313
</thead>
1414
<tbody>
15+
<tr>
16+
<td><tmpl_var name="username_txt"></td>
17+
<td><tmpl_var name="username"></td>
18+
</tr>
1519
<tr>
1620
<td><tmpl_var name="timestamp_txt"></td>
1721
<td><tmpl_var name="timestamp"></td>

0 commit comments

Comments
 (0)