From Coral Macaw, 1 Year ago, written in Plain Text.
This paste is a reply to Untitled from Gray Crocodile - view diff
Embed
  1. <html>
  2. <head>
  3.   <title>{{ $alert->title }}</title>
  4.   <style type="text/css">
  5.  
  6.   body {
  7.     margin: 15px;
  8.     font-family: 'Source Sans Pro', 'Helvetica Neue', Helvetica, Arial, sans-serif;
  9.     font-size: 14px;
  10.     line-height: 20px;
  11.     color: #333333;
  12.     background-color: #fff;
  13.     font-weight: 400;
  14.   }
  15.  
  16.   .box {
  17.     position: relative;
  18.     -webkit-border-radius: 0px;
  19.     -moz-border-radius: 0px;
  20.     border-radius: 0px;
  21.     background: #ffffff;
  22.     margin-bottom: 10px;
  23.     width: 100%;
  24.     box-shadow: 0 0 2px rgba(0, 0, 0, 0.12), 0 2px 4px rgba(0, 0, 0, 0.24);
  25.   }
  26.  
  27.   .no-padding {
  28.     padding: 0 !important;
  29.   }
  30.  
  31.   .table {
  32.     max-width: 600px;
  33.     background-color: #fff;
  34.     border-collapse: collapse;
  35.     border-spacing: 0;
  36.     color: #333;
  37.   }
  38.  
  39.   .table th, .table td {
  40.     padding: 5px 10px;
  41.     line-height: 20px;
  42.     text-align: left;
  43.     vertical-align: top;
  44.     border-top: 1px solid #f4f4f4;
  45.   }
  46.  
  47.   .table tbody > tr:nth-child(even) > td, .table tbody > tr:nth-child(even) > th {
  48.     background-color: #f9f9f9;
  49.   }
  50.  
  51.   .table .state-marker, .state-marker {
  52.     padding: 0px;
  53.     margin: none;
  54.     width: 7px;
  55.   }
  56.  
  57.   .table tbody > tr > td.state-marker {
  58.     background-color: #004774;
  59.   }
  60.  
  61.   .table .ALERT .state-marker {
  62.     background-color: #bd1e1e;
  63.   }
  64.  
  65.   .table tbody > tr.ALERT > td {
  66.     background-color: #ffebee;
  67.   }
  68.  
  69.   .ALERT {
  70.     color: red;
  71.   }
  72.  
  73.   .table .ACKNOWLEDGED .state-marker {
  74.     background-color: rgb(187, 135, 4);
  75.   }
  76.  
  77.   .table tbody > tr.ACKNOWLEDGED > td {
  78.     background-color: #fff8eb;
  79.   }
  80.  
  81.   .ACKNOWLEDGED {
  82.     color: goldenrod;
  83.   }
  84.  
  85.   .table .RECOVERED .state-marker {
  86.     background-color: rgb(0, 92, 0);
  87.   }
  88.  
  89.   .table tbody > tr.RECOVERED > td {
  90.     background-color: #ebffec;
  91.   }
  92.  
  93.   .RECOVERED {
  94.     color: green;
  95.   }
  96.  
  97.   .header { font-size: 20px; font-weight: bold; padding: 10px;}
  98.  
  99.   </style>
  100. </head>
  101. <body>
  102.     <p>Merhaba bu alert Arya-IT NOC Ekibi tarafından oluşturulmuştur. Ilgili sunucunun memory durumunu kontrol ederek lütfen bilgi sağlayınız.</p> <br>
  103. <table border="2" class="table box box-solid">
  104.   <tbody>
  105.     @if ($alert->state == 1) <tr class="ALERT">
  106.     @elseif ($alert->state == 2) <tr class="ACKNOWLEDGED">
  107.     @elseif ($alert->state == 0) <tr class="RECOVERED">
  108.     @elseif ($alert->state == 3) <tr class="RECOVERED">
  109.     @else <tr class="RECOVERED">
  110.     @endif
  111.         <td class="state-marker"></td>
  112.         <td colspan=2 xss=removed class="header">
  113.           @if ($alert->state == 1) <span class="ALERT">{{ $alert->severity }} @endif
  114.             @if ($alert->state == 2) <span class="ACKNOWLEDGED">acknowledged @endif</span>
  115.             @if ($alert->state == 3) <span class="RECOVERED">recovering @endif</span>
  116.             @if ($alert->state == 0) <span class="RECOVERED">recovered @endif</span>
  117.         </td>
  118.     </tr>
  119.     <tr>
  120.         <td colspan=2><strong>Alert Title:</strong></td>
  121.         <td><strong>{{ $alert->name }}</strong></td>
  122.     </tr>
  123.     <tr>
  124.         <td colspan=2><strong>System Name:</strong></td>
  125.         <td><strong><a>device_id }}/" class="entity-popup red" data-eid="{{ $alert->device_id }}" data-etype="device">{{ $alert->sysName }}</a></strong></td>
  126.     </tr>
  127.     <tr>
  128.         <td colspan=2><strong>Device IP:</strong></td>
  129.         <td><strong><a>device_id }}/" class="entity-popup red" data-eid="{{ $alert->device_id }}" data-etype="device">{{ $alert->hostname }}</a></strong></td>
  130.     </tr>
  131.         @foreach ($alert->faults as $key => $value)
  132.         <tr>
  133.             <td colspan=2><strong>Error DIMM:</strong></td>
  134.             <td>{{$value['state_name']}}</td>
  135.         </tr>
  136.         @endforeach
  137.  
  138.   </tbody>
  139. </table>
  140. &lt;/body&gt;
  141. &lt;/html&gt;