"Fossies" - the Fresh Open Source Software Archive

Member "moskito-moskito-2.10.0/moskito-webui/src/main/java/net/anotheria/moskito/webui/loadfactors/jsp/LoadFactors.jsp" (20 Nov 2020, 6382 Bytes) of package /linux/misc/moskito-moskito-2.10.0.tar.gz:


As a special service "Fossies" has tried to format the requested source page into HTML format using (guessed) JavaServer Pages source code syntax highlighting (style: standard) with prefixed line numbers. Alternatively you can here view or download the uninterpreted source code file.

    1 <%@ page language="java" contentType="text/html;charset=UTF-8"  session="true"
    2         %><%@ taglib uri="http://www.anotheria.net/ano-tags" prefix="ano"
    3         %><!DOCTYPE html>
    4 <html xmlns="http://www.w3.org/1999/xhtml" xmlns="http://www.w3.org/1999/html">
    5 
    6 <jsp:include page="../../shared/jsp/Header.jsp" flush="false"/>
    7 
    8 <section id="main">
    9     <jsp:include page="../../shared/jsp/Alerts.jsp"/>
   10 
   11     <ano:equal name="newThresholdAdded" value="true">
   12         <div class="alert alert-success alert-dismissable">
   13             <button type="button" class="close" data-dismiss="alert" aria-hidden="true">&times;</button>
   14             Threshold <ano:write name="newThresholdName"/> added!
   15         </div>
   16     </ano:equal>
   17     <div class="content">
   18 
   19         <div class="box">
   20             <div class="box-title">
   21                 <a class="accordion-toggle tooltip-bottom" title="Close/Open" data-toggle="collapse" href="#collapsestatus"><i class="fa fa-caret-down"></i></a>
   22                 <h3 class="pull-left">
   23                     Load factors
   24                 </h3>
   25                 <div class="box-right-nav">
   26                     <a href="" class="tooltip-bottom" title="Help"><i class="fa fa-info-circle"></i></a>
   27                 </div>
   28             </div>
   29             <div id="collapsestatus" class="box-content accordion-body collapse in">
   30                 <table class="table table-striped tablesorter">
   31                     <thead>
   32                     <tr>
   33                         <th>Name <i class="fa fa-caret-down"></i></th>
   34                         <th>Ratio <i class="fa fa-caret-down"></i></th>
   35                         <th>Metric <i class="fa fa-caret-down"></i></th>
   36                         <th>Interval <i class="fa fa-caret-down"></i></th>
   37                         <th>Left<i class="fa fa-caret-down"></i></th>
   38                         <th>Right <i class="fa fa-caret-down"></i></th>
   39                         <th>Ratio values <i class="fa fa-caret-down"></i></th>
   40                         <th class="th-actions"></th>
   41                     </tr>
   42                     </thead>
   43                     <tbody>
   44                     <ano:iterate name="loadfactors" type="net.anotheria.moskito.webui.loadfactors.api.LoadFactorAO" id="loadfactor" indexId="index">
   45                     <tr>
   46                         <td>${loadfactor.name}</td>
   47                         <td>${loadfactor.ratioAsString}</td>
   48                         <td>${loadfactor.metric}</td>
   49                         <td>${loadfactor.interval}</td>
   50                         <td>${loadfactor.leftDescription}</td>
   51                         <td>${loadfactor.rightDescription}</td>
   52                         <td>${loadfactor.ratioDescription}</td>
   53                         <td>&nbsp;</td>
   54                     </tr>
   55                     </ano:iterate>
   56                     </tbody>
   57                 </table>
   58             </div>
   59         </div>
   60 
   61 <%--
   62         <div class="box">
   63             <div class="box-title">
   64                 <a class="accordion-toggle tooltip-bottom" title="Close/Open" data-toggle="collapse" href="#collapsehistory"><i class="fa fa-caret-down"></i></a>
   65                 <h3 class="pull-left">
   66                     History (newest first)
   67                 </h3>
   68                 <div class="box-right-nav">
   69                     <a href="" class="tooltip-bottom" title="Help"><i class="fa fa-info-circle"></i></a>
   70                 </div>
   71             </div>
   72             <div id="collapsehistory" class="box-content accordion-body collapse in h-scrollbar">
   73                 <table class="table table-striped tablesorter">
   74                     <thead>
   75                     <tr>
   76                         <th>Timestamp <i class="fa fa-caret-down"></i></th>
   77                         <th>Name <i class="fa fa-caret-down"></i></th>
   78                         <th>Status change <i class="fa fa-caret-down"></i></th>
   79                         <th>Value change <i class="fa fa-caret-down"></i></th>
   80                     </tr>
   81                     </thead>
   82                     <tbody>
   83                     <ano:iterate name="alerts" type="net.anotheria.moskito.webui.threshold.api.ThresholdAlertAO" id="alert" indexId="index">
   84                     <tr>
   85                         <td>${alert.timestamp}</td>
   86                         <td><a class="threshold-update-link" data-id="${alert.id}" href="#">${alert.name}</a></td>
   87                         <td><i class="status status-${alert.oldColorCode}"></i> <i class="fa fa-long-arrow-right"></i> <i class="status status-${alert.newColorCode}"></i></td>
   88                         <td>${alert.oldValue} <i class="fa fa-long-arrow-right"></i> ${alert.newValue}</td>
   89                     </tr>
   90                     </ano:iterate>
   91                     </tbody>
   92                 </table>
   93             </div>
   94         </div>
   95               --%>
   96     </div>
   97 
   98     <div class="modal fade modal-danger" id="mskThresholdDelete" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true">
   99         <div class="modal-dialog">
  100             <div class="modal-content">
  101                 <div class="modal-header">
  102                     <button type="button" class="close" data-dismiss="modal" aria-hidden="true">&times;</button>
  103                     <h4 class="modal-title" id="myModalLabel">Delete this Threshold?</h4>
  104                 </div>
  105                 <div class="modal-footer text-center">
  106                     <button type="button" class="btn btn-default" data-dismiss="modal">Close</button>
  107                     <a href="#" class="btn btn-danger threshold-delete-confirm">Delete</a>
  108                 </div>
  109             </div>
  110         </div>
  111     </div>
  112 
  113     <jsp:include page="../../shared/jsp/Footer.jsp" flush="false"/>
  114     <%-- jsp:include page="snippet/ThresholdUpdateModal.jsp"/ --%>
  115 
  116     <script type="text/javascript">
  117         $(function () {
  118             $('.actions-links').on('click','.delete-icon', function() {
  119                 var dataid = $(this).attr('data-id');
  120                 $('.threshold-delete-confirm').attr("href", "mskThresholdDelete?pId=" + dataid);
  121             });
  122 
  123             // Event listener for threshold update click
  124             $('.threshold-update-link').click(function (e) {
  125                 e.preventDefault();
  126 
  127                 var thresholdId = $(this).data('id');
  128                 showThresholdUpdateModal(thresholdId);
  129             });
  130         });
  131     </script>
  132 
  133 </section>
  134 
  135 </body>
  136 </html>
  137 
  138