diff options
author | Simon Rettberg | 2021-03-11 15:05:59 +0100 |
---|---|---|
committer | Simon Rettberg | 2021-03-11 15:05:59 +0100 |
commit | adcd135641a731875f2293501c09f52ca23fe94e (patch) | |
tree | ba8b6985af9e1ea9035da9dee00aceec98796b8c /modules-available | |
parent | [locationinfo] Remove insecure SSL hack (diff) | |
download | slx-admin-adcd135641a731875f2293501c09f52ca23fe94e.tar.gz slx-admin-adcd135641a731875f2293501c09f52ca23fe94e.tar.xz slx-admin-adcd135641a731875f2293501c09f52ca23fe94e.zip |
[eventlog] Linkify Client-UUIDs in Server-Log
Diffstat (limited to 'modules-available')
-rw-r--r-- | modules-available/eventlog/templates/_page.html | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/modules-available/eventlog/templates/_page.html b/modules-available/eventlog/templates/_page.html index 239286f8..6be0bbb8 100644 --- a/modules-available/eventlog/templates/_page.html +++ b/modules-available/eventlog/templates/_page.html @@ -11,7 +11,7 @@ <tr> <td><span class="glyphicon glyphicon-{{icon}}" title="{{logtypeid}}"></span></td> <td class="text-center" nowrap="nowrap">{{date}}</td> - <td class="{{color}}">{{description}}</td> + <td class="{{color}} log-line">{{description}}</td> <td class="text-center">{{#extra}} <a class="btn btn-default btn-xs" onclick="$('#details-body').html($('#extra-{{logid}}').html())" data-toggle="modal" data-target="#myModal">»</a> <div class="hidden" id="extra-{{logid}}">{{extra}}</div> @@ -35,3 +35,13 @@ </div> </div> </div> +<script> + (function () { + var x = document.getElementsByClassName('log-line'); + for (var i = 0; i < x.length; ++i) { + var y = x[i]; + y.innerHTML = y.innerHTML.replace(/(client) ([0-9a-f]{8}\b-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-\b[0-9a-f]{12})/i, + '$1 <a href="?do=statistics&uuid=$2">$2</a>'); + } + })(); +</script>
\ No newline at end of file |