diff --git a/burpui/templates/clients.html b/burpui/templates/clients.html index 65dc5459..ece9bbac 100644 --- a/burpui/templates/clients.html +++ b/burpui/templates/clients.html @@ -22,6 +22,7 @@ {{ _('Name') }} {{ _('State') }} {{ _('Last Backup') }} + {{ _('Monitor') }} diff --git a/burpui/templates/js/clients.js b/burpui/templates/js/clients.js index 70290c20..71421a1f 100644 --- a/burpui/templates/js/clients.js +++ b/burpui/templates/js/clients.js @@ -11,7 +11,7 @@ var __status = { "{{ _('client crashed') }}": 'danger', "{{ _('server crashed') }}": 'danger', "{{ _('running') }}": 'info', - "{{ _('idle') }}": undefined, // hack to manage translation + "{{ _('idle') }}": 'idle', // hack to manage translation }; /*** @@ -19,7 +19,7 @@ var __status = { */ var __date = { "{{ _('never') }}": 'warning', - "{{ _('now') }}": undefined, // hack to manage translation + "{{ _('now') }}": 'now', // hack to manage translation }; /*** @@ -94,6 +94,22 @@ var _clients_table = $('#table-clients').dataTable( { return ''+moment(data.last, moment.ISO_8601).format({{ g.date_format|tojson }})+''; return data.last } + }, + { + data: null, + render: function (data, type, row ) { + var cls = ''; + var link_start = ''; + var link_end = ''; + var label = ''; + if (__date[data.last] == 'now' && __status[data.state] != 'idle') { + cls = 'blink'; + link_start = ''; + link_end = ''; + label = ' {{ _("view") }}'; + } + return link_start + '' + label + link_end; + } } ] }); diff --git a/burpui/templates/layout.html b/burpui/templates/layout.html index 4870b21e..4bdf5e50 100644 --- a/burpui/templates/layout.html +++ b/burpui/templates/layout.html @@ -35,9 +35,7 @@ {% endif -%} - {% if me or about or tree -%} - {% endif -%} diff --git a/burpui/templates/topbar.html b/burpui/templates/topbar.html index 76121aee..8e355d57 100644 --- a/burpui/templates/topbar.html +++ b/burpui/templates/topbar.html @@ -13,40 +13,40 @@