Skip to content

Commit 0ab69a8

Browse files
committed
Draft link to modified record
1 parent 1932959 commit 0ab69a8

File tree

2 files changed

+11
-1
lines changed

2 files changed

+11
-1
lines changed

interface/web/monitor/dataloghistory_view.php

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,16 @@
5454

5555
$out['timestamp'] = date($app->lng('conf_format_datetime'), $record['tstamp']);
5656
$out['table'] = $record['dbtable'];
57+
list($key, $value) = explode(':', $record['dbidx']);
58+
if (!empty($value)) {
59+
if ($record['action'] == 'd') {
60+
// No link for deleted content.
61+
$out['table_id'] = $record['dbidx'];
62+
} else {
63+
// TODO link per content type
64+
$out['table_id'] = '<a href="#" data-load-content="mail/mail_user_edit.php?id=' . $value .'" data-toggle="tooltip" data-placement="bottom" title="" data-original-title="link">'.$record['dbidx'].'</a>';
65+
}
66+
}
5767

5868
$out['action_char'] = $record['action'];
5969
$out['action_name'] = $app->lng($record['action']);

interface/web/monitor/templates/dataloghistory_view.htm

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ <h1><tmpl_var name="list_head_txt"></h1>
2222
</tr>
2323
<tr>
2424
<td><tmpl_var name="table_txt"></td>
25-
<td><tmpl_var name="table"></td>
25+
<td><tmpl_var name="table"> (<tmpl_var name="table_id">)</td>
2626
</tr>
2727
<tr>
2828
<td><tmpl_var name="action_txt"></td>

0 commit comments

Comments
 (0)