|
| 1 | +<!doctype html> |
| 2 | +<html> |
| 3 | + <head> |
| 4 | + <title>Predbat Web Interface</title> |
| 5 | + <link href="https://cdn.jsdelivr.net/npm/@mdi/font@7.4.47/css/materialdesignicons.min.css" rel="stylesheet"> |
| 6 | + <script src="https://cdn.jsdelivr.net/npm/apexcharts"></script> |
| 7 | + <style> |
| 8 | + body, html { |
| 9 | + margin: 0; |
| 10 | + padding: 0; |
| 11 | + height: 100%; |
| 12 | + } |
| 13 | + .iframe-container { |
| 14 | + display: flex; |
| 15 | + flex-direction: column; |
| 16 | + height: 90vh; |
| 17 | + } |
| 18 | + /* Style for the top menu iframe */ |
| 19 | + .menu-frame { |
| 20 | + height: 80px; /* Adjust the height of the menu bar */ |
| 21 | + width: 100%; |
| 22 | + border: none; |
| 23 | + overflow: hidden; |
| 24 | + } |
| 25 | + /* Style for the full height iframe */ |
| 26 | + .main-frame { |
| 27 | + flex-grow: 1; |
| 28 | + width: 100%; |
| 29 | + border: none; |
| 30 | + } |
| 31 | + body { |
| 32 | + font-family: Arial, sans-serif; |
| 33 | + text-align: left; |
| 34 | + margin: 5px; |
| 35 | + background-color: #ffffff; |
| 36 | + color: #333; |
| 37 | + } |
| 38 | + h1 { |
| 39 | + color: #4CAF50; |
| 40 | + } |
| 41 | + h2 { |
| 42 | + color: #4CAF50; |
| 43 | + display: inline |
| 44 | + } |
| 45 | + table { |
| 46 | + border-collapse: collapse; |
| 47 | + padding: 1px; |
| 48 | + border: 1px solid blue; |
| 49 | + } |
| 50 | + th, |
| 51 | + td { |
| 52 | + text-align: left; |
| 53 | + padding: 5px; |
| 54 | + vertical-align: top; |
| 55 | + } |
| 56 | + th { |
| 57 | + background-color: #4CAF50; |
| 58 | + color: white; |
| 59 | + } |
| 60 | + .default { |
| 61 | + background-color: #FFFFFF; |
| 62 | + } |
| 63 | + .modified { |
| 64 | + background-color: #FFCCCC; |
| 65 | + } |
| 66 | + </style> |
| 67 | + {% if refresh is defined %} |
| 68 | + <meta http-equiv="refresh" content="{{ refresh }}" > |
| 69 | + {% endif %} |
| 70 | + |
| 71 | + </head> |
| 72 | + <body> |
| 73 | + <div> |
| 74 | + <table> |
| 75 | + <tr> |
| 76 | + <td><h2>Predbat</h2></td><td><img src="https://github-production-user-asset-6210df.s3.amazonaws.com/48591903/249456079-e98a0720-d2cf-4b71-94ab-97fe09b3cee1.png" width="50" height="50"></td> |
| 77 | + <td><a href="./">Dash</a></td> |
| 78 | + <td><a href="./plan">Plan</a></td> |
| 79 | + <td><a href="./charts">Charts</a></td> |
| 80 | + <td><a href="./config">Config</a></td> |
| 81 | + <td><a href="./apps">apps.yaml</a></td> |
| 82 | + <td><a href="./log?warnings">Log</a></td> |
| 83 | + <td><a href="./docs">Docs</a></td> |
| 84 | + </tr> |
| 85 | + </table> |
| 86 | + </div> |
| 87 | + {% block content %}{% endblock %} |
| 88 | + </body> |
| 89 | +</html> |
0 commit comments