From 324ee36fe31763e507b422ab0a88e4230045e205 Mon Sep 17 00:00:00 2001 From: "Timoney, Daniel (dt5972)" Date: Wed, 15 Feb 2017 10:37:53 -0500 Subject: Initial commit for OpenECOMP SDN-C OA&M Change-Id: I7ab579fd0d206bf356f36d52dcdf4f71f1fa2680 Signed-off-by: Timoney, Daniel (dt5972) Former-commit-id: 2a9f0edd09581f907e62ec4689b5ac94dd5382ba --- admportal/views/logs/accesslog.ejs.0223 | 121 ++++++++++++++++++++++++++++++++ 1 file changed, 121 insertions(+) create mode 100644 admportal/views/logs/accesslog.ejs.0223 (limited to 'admportal/views/logs/accesslog.ejs.0223') diff --git a/admportal/views/logs/accesslog.ejs.0223 b/admportal/views/logs/accesslog.ejs.0223 new file mode 100644 index 00000000..77ece8f9 --- /dev/null +++ b/admportal/views/logs/accesslog.ejs.0223 @@ -0,0 +1,121 @@ + + + + + + <% include ../partials/head %> + <% include ../partials/header %> + + SDN-C AdminPortal + + + + + +
+

HTTP Server Access Log

+
+ +<% if ( typeof result != 'undefined' ) { + if (result.code.length > 0) { + if ( result.code == 'success' ) { %> + + <% } else { %> +
+ <% + for ( x in result.msg ){ %> +
<%= result.msg[x] %>
+ <% } %> +
+ <% } %> + <% } %> +<% } %> + +<% if( typeof privilege != 'undefined'){ + var priv = privilege.privilege; +} else { + var priv = 'A'; +} %> + + +
+ + + + + + + + + + + + <% for(var x=0; x + + + + + + + + <% } %> + +
Date (UTC)MethodVersionStatusURL
<%= pageInfo.rows[x].date %><%= pageInfo.rows[x].method %><%= pageInfo.rows[x].version %><%= pageInfo.rows[x].status %><%= pageInfo.rows[x].url %>
+
+ +
+
+
+

  Page <%= pageInfo.currentPage %> of <%= pageInfo.pageCount %>

+
+
+ <% if (pageInfo.pageCount > 1) { %> +
    + <% if (pageInfo.currentPage > 1) { %> +
  • «
  • + <% } %> + <% var i = 1; + if (pageInfo.currentPage > 10) { + i = +pageInfo.currentPage - 9; + } %> + <% if (i !== 1) { %> + + <% } %> + <% for (i; i<=pageInfo.pageCount; i++) { %> + <% if (pageInfo.currentPage == i) { %> +
  • <%= i %> (current)
  • + <% } else { %> +
  • <%= i %>
  • + <% } %> + <% if (i == (+pageInfo.currentPage + 9)) { %> + + <% break; } %> + <% } %> + <% if (pageInfo.currentPage != pageInfo.pageCount) { %> +
  • »
  • + <% } %> +
+ <% } %> +
+
+
+ + + + + + + -- cgit 1.2.3-korg