mirror of
https://github.com/NginxProxyManager/nginx-proxy-manager.git
synced 2025-08-07 18:03:33 +00:00
Notify policy updates to open-appsec container.
UI labels in log.
This commit is contained in:
@@ -1,29 +1,6 @@
|
||||
|
||||
<td>
|
||||
<%- formatDbDate(eventTime, 'D-M-YYYY, H:mm') %>
|
||||
</td>
|
||||
<td>
|
||||
<div class="text-nowrap">
|
||||
<% var sevirityClass = 'bg-success';
|
||||
switch (eventSeverity) {
|
||||
case 'Critical':
|
||||
sevirityClass = 'bg-danger';
|
||||
break;
|
||||
case 'Warning':
|
||||
sevirityClass = 'bg-warning';
|
||||
break;
|
||||
case 'Info':
|
||||
sevirityClass = 'bg-success';
|
||||
//sevirityClass = 'bg-info';
|
||||
break;
|
||||
case 'Debug':
|
||||
sevirityClass = 'bg-success';
|
||||
break;
|
||||
}
|
||||
%>
|
||||
<span class="status-icon <%- sevirityClass %>"></span> <%- eventSeverity %>
|
||||
</div>
|
||||
</td>
|
||||
<td><%- formatDbDate(eventTime, 'D-M-YY, H:mm') %></td>
|
||||
<td><%- eventSeverity %></td>
|
||||
<td><%- assetName %></td>
|
||||
<td><%- securityAction %></td>
|
||||
<td><%- waapIncidentType %></td>
|
||||
@@ -34,10 +11,10 @@
|
||||
<td><%- httpMethod %></td>
|
||||
<td><%- httpResponseCode %></td>
|
||||
<td><%- httpUriPath %></td>
|
||||
<td><%- protectionName %></td>
|
||||
<td><%- eventTopic %></td>
|
||||
<td><%- matchedLocation %></td>
|
||||
<td><%- matchedParameter %></td>
|
||||
<td><%- matchedSample %></td>
|
||||
<td class="text-right">
|
||||
<a href="#" class="meta btn btn-secondary btn-sm">open</a>
|
||||
</td>
|
||||
</td>
|
@@ -11,7 +11,7 @@
|
||||
<th>HTTP Method</th>
|
||||
<th>HTTP Response Code</th>
|
||||
<th>HTTP URI Path</th>
|
||||
<th>Protection Name</th>
|
||||
<th>Event Topic</th>
|
||||
<th>Matched Location</th>
|
||||
<th>Matched Parameter</th>
|
||||
<th>Matched Sample</th>
|
||||
|
@@ -8,7 +8,6 @@ let TableBody = Mn.CollectionView.extend({
|
||||
|
||||
initialize: function (options) {
|
||||
this.options = new Backbone.Model(options);
|
||||
console.log("options: ", options);
|
||||
// this.page = options.page;
|
||||
// this.perPage = options.perPage;
|
||||
this.updatePage();
|
||||
@@ -20,22 +19,12 @@ let TableBody = Mn.CollectionView.extend({
|
||||
let page = this.page || 1;
|
||||
let models;
|
||||
if (this.perPage && this.page) {
|
||||
console.log('updatePage2');
|
||||
models = this.collection.models.slice((page - 1) * perPage, page * perPage);
|
||||
} else {
|
||||
console.log('updatePage3');
|
||||
|
||||
models = this.collection.models;
|
||||
}
|
||||
this.collection.reset(models);
|
||||
}
|
||||
|
||||
// updatePage: function () {
|
||||
// let perPage = this.perPage || this.collection.length;
|
||||
// let page = this.page || 1;
|
||||
// let models = this.collection.models.slice((page - 1) * perPage, page * perPage);
|
||||
// this.collection.reset(models);
|
||||
// }
|
||||
});
|
||||
|
||||
module.exports = Mn.View.extend({
|
||||
|
Reference in New Issue
Block a user