summaryrefslogtreecommitdiff
path: root/src/main/webapp/WEB-INF/jsp/show_gcs_log.jsp
diff options
context:
space:
mode:
Diffstat (limited to 'src/main/webapp/WEB-INF/jsp/show_gcs_log.jsp')
-rw-r--r--src/main/webapp/WEB-INF/jsp/show_gcs_log.jsp188
1 files changed, 0 insertions, 188 deletions
diff --git a/src/main/webapp/WEB-INF/jsp/show_gcs_log.jsp b/src/main/webapp/WEB-INF/jsp/show_gcs_log.jsp
deleted file mode 100644
index 8d73d34..0000000
--- a/src/main/webapp/WEB-INF/jsp/show_gcs_log.jsp
+++ /dev/null
@@ -1,188 +0,0 @@
-<%--
- ~ Copyright (c) 2018 Google Inc. All Rights Reserved.
- ~
- ~ Licensed under the Apache License, Version 2.0 (the "License"); you
- ~ may not use this file except in compliance with the License. You may
- ~ obtain a copy of the License at
- ~
- ~ http://www.apache.org/licenses/LICENSE-2.0
- ~
- ~ Unless required by applicable law or agreed to in writing, software
- ~ distributed under the License is distributed on an "AS IS" BASIS,
- ~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
- ~ implied. See the License for the specific language governing
- ~ permissions and limitations under the License.
- --%>
-<%@ page contentType='text/html;charset=UTF-8' language='java' %>
-<%@ taglib prefix='fn' uri='http://java.sun.com/jsp/jstl/functions' %>
-<%@ taglib prefix='c' uri='http://java.sun.com/jsp/jstl/core'%>
-
-<html>
- <%@ include file="header.jsp" %>
- <link rel='stylesheet' href='/css/show_gcs_log.css'>
- <link rel='stylesheet' href='/css/search_header.css'>
- <script src='https://www.gstatic.com/external_hosted/moment/min/moment-with-locales.min.js'></script>
- <script src='js/time.js'></script>
- <script src='js/plan_runs.js'></script>
- <script src='js/search_header.js'></script>
- <script type='text/javascript'>
- $(document).ready(function() {
- var paraMap = {'path': '', 'entry': ''};
- $('.modal').modal({
- dismissible: true, // Modal can be dismissed by clicking outside of the modal
- opacity: .5, // Opacity of modal background
- inDuration: 300, // Transition in duration
- outDuration: 200, // Transition out duration
- startingTop: '4%', // Starting top style attribute
- endingTop: '10%', // Ending top style attribute
- ready: function(modal, trigger) { // Callback for Modal open. Modal and trigger parameters available.
- $('.loading-overlay').show();
- if ($(modal).attr("id") == "logEntryListModal") {
- console.log($(trigger));
- $(trigger).addClass("active");
- paraMap['path'] = "${path}" + trigger.text().trim();
- var fileName = paraMap['path'].substring(paraMap['path'].lastIndexOf('/')+1); // Getting filename
- $(modal).find('#entry-list-modal-title').text(fileName); // Set file name for modal window
- var url = "${requestScope['javax.servlet.forward.servlet_path']}?path=" + paraMap['path'];
- $(modal).find('#downloadLink').prop('href', url + "&action=download");
- $.get( url, function(data) {
- var entryList = $(modal).find('#modal-entry-list');
- $(data.entryList).each(function( index, element ) {
- entryList.append("<li class='collection-item'><a href='#logEntryViewModal' class='modal-trigger'>" + element + "</a></li>");
- });
- }).done(function() {
- $('.loading-overlay').hide();
- });
- } else {
- paraMap['entry'] = trigger.text().trim();
- $(modal).find('#entry-view-modal-title').text(paraMap['entry']);
- var entryUrl = "${requestScope['javax.servlet.forward.servlet_path']}?path=" + paraMap['path'] + "&entry=" + paraMap['entry'];
- $.get( entryUrl, function(data) {
- $(modal).find('#entry-view-modal-content').text(data.entryContent);
- }).done(function() {
- $('.loading-overlay').hide();
- });
- }
- },
- complete: function(modal) {
- if ($(modal).attr("id") == "logEntryListModal") {
- $(modal).find('#modal-entry-list').find("li").remove();
- $("div.collection > a.collection-item.active").removeClass('active')
- } else {
- $(modal).find('#entry-view-modal-content').text('');
- }
- } // Callback for Modal close
- });
- });
- </script>
-
- <body>
- <div class='wide container'>
- <div class='row' id='release-container'>
- <h5>Current Directory Path : ${path}</h5>
- <hr/>
- <div class="row">
- <div class="col s7">
- <h4>Directory List</h4>
- <ul class="collection">
- <c:forEach varStatus="dirLoop" var="dirName" items="${dirList}">
- <li class="collection-item">
- <a href="${requestScope['javax.servlet.forward.servlet_path']}?path=${dirName}">
- <c:out value="${dirName}"></c:out>
- <c:if test="${dirLoop.first && path ne '/'}">
- (Move to Parent)
- </c:if>
- </a>
- </li>
- <c:if test="${!dirLoop.last}">
- </c:if>
- </c:forEach>
- </ul>
- </div>
- <div class="col s5">
- <h4>File List</h4>
- <div class="collection">
- <c:forEach varStatus="fileLoop" var="fileName" items="${fileList}">
- <a href="#logEntryListModal" class="collection-item modal-trigger">
- <c:out value="${fileName}"></c:out>
- </a>
- <c:if test="${!fileLoop.last}">
- </c:if>
- </c:forEach>
- </div>
- </div>
- </div>
-
- </div>
- </div>
-
- <%@ include file="footer.jsp" %>
-
- <!-- Modal For Zip file entries -->
- <div id="logEntryListModal" class="modal">
- <div class="modal-content">
- <h4 id="entry-list-modal-title" class="truncate"></h4>
- <div id="entry-list-modal-content">
- <ul id="modal-entry-list" class="collection"></ul>
- </div>
- </div>
- <div class="modal-footer">
- <div class="row">
- <div class="col s3 offset-s6">
- <a href="#!" id="downloadLink" class="modal-action modal-close waves-effect waves-green btn">Download</a>
- </div>
- <div class="col s3">
- <a href="#!" class="modal-action modal-close waves-effect waves-green btn">Close</a>
- </div>
- </div>
- </div>
-
- <div class="loading-overlay">
- <div class="preloader-wrapper big active" style="top: 25%; left: 45%;">
- <div class="spinner-layer spinner-blue-only">
- <div class="circle-clipper left">
- <div class="circle"></div>
- </div>
- <div class="gap-patch">
- <div class="circle"></div>
- </div>
- <div class="circle-clipper right">
- <div class="circle"></div>
- </div>
- </div>
- </div>
- </div>
-
- </div>
-
- <!-- Modal For Zip file entry's content -->
- <div id="logEntryViewModal" class="modal modal-fixed-footer">
- <div class="modal-content">
- <h4 id="entry-view-modal-title" class="truncate"></h4>
- <div id="entry-view-modal-content">
-
- </div>
- </div>
- <div class="modal-footer">
- <a href="#!" class="modal-action modal-close waves-effect waves-green btn">Close</a>
- </div>
-
- <div class="loading-overlay">
- <div class="preloader-wrapper big active" style="top: 25%; left: 45%;">
- <div class="spinner-layer spinner-blue-only">
- <div class="circle-clipper left">
- <div class="circle"></div>
- </div>
- <div class="gap-patch">
- <div class="circle"></div>
- </div>
- <div class="circle-clipper right">
- <div class="circle"></div>
- </div>
- </div>
- </div>
- </div>
-
- </div>
- </body>
-</html>