root / hci / trunk / eneraptor-web-app / grails-app / views / config / hci.gsp @ 6
History | View | Annotate | Download (2.6 KB)
1 | 3 | alexbesir | <html> |
---|---|---|---|
2 | |||
3 | <head> |
||
4 | <title>Configuration » HCI</title> |
||
5 | <meta name="layout" content="main" /> |
||
6 | </head> |
||
7 | |||
8 | <body> |
||
9 | |||
10 | 6 | alexbesir | <erptr:box title="Information"> |
11 | 3 | alexbesir | |
12 | 6 | alexbesir | <p>HCI Version: <span style="font-family:monospace;">${conf.findByConfigId('hci-version').configVal}</span></p> |
13 | 3 | alexbesir | |
14 | 6 | alexbesir | <p style="float: left;">Disk usage: </p> |
15 | <div style="float:left;"> |
||
16 | <div style="width: 100px;border:1px solid grey;"> |
||
17 | <div style="width:${percent}px;background:grey;"> |
||
18 | |
||
19 | </div> |
||
20 | </div> |
||
21 | </div> |
||
22 | <span> ${percent}% (free space ${(int)freeSpace} MB) </span> |
||
23 | <g:if test="${percent >= 95}"> |
||
24 | <i style="color:red;"> Warning: disk is almost full. You should erase some old log entries.</i> |
||
25 | </g:if> |
||
26 | |||
27 | 3 | alexbesir | </erptr:box> |
28 | |||
29 | <erptr:box title="Known devices"> |
||
30 | |||
31 | <table width="100%"> |
||
32 | <thead> |
||
33 | <tr> |
||
34 | <th width="200px">Device ID</th> |
||
35 | <th width="200px">Friendly name</th> |
||
36 | 6 | alexbesir | <th width="100px">Capable of making</th> |
37 | 3 | alexbesir | <th>Description</th> |
38 | <th width="60px">Options</th> |
||
39 | </tr> |
||
40 | </thead> |
||
41 | <tbody> |
||
42 | <g:each in="${devices}" var="device"> |
||
43 | <tr> |
||
44 | 6 | alexbesir | <td><p> |
45 | 3 | alexbesir | <g:if test="${device.iconPath}"> |
46 | 6 | alexbesir | <erptr:icon w="${device.iconPath}" /> |
47 | 3 | alexbesir | </g:if> |
48 | 6 | alexbesir | ${device.deviceId}</p></td> |
49 | <td><p>${device.friendlyName}</p></td> |
||
50 | <td><p> |
||
51 | <g:if test="${device.inputDevice && device.outputDevice}"> |
||
52 | measurements, actions |
||
53 | </g:if> |
||
54 | <g:if test="${device.inputDevice && !device.outputDevice}"> |
||
55 | measurements |
||
56 | </g:if> |
||
57 | <g:if test="${!device.inputDevice && device.outputDevice}"> |
||
58 | actions |
||
59 | </g:if> |
||
60 | </p></td> |
||
61 | <td><p>${device.description}</p></td> |
||
62 | <td><center><erptr:changeDeleteOptions table="Hci" for="${device.id}" /></center></td> |
||
63 | 3 | alexbesir | </tr> |
64 | </g:each> |
||
65 | </tbody> |
||
66 | </table> |
||
67 | <g:if test="${devices.size() < 1}"> |
||
68 | <center>There are no known devices.</center> |
||
69 | </g:if> |
||
70 | |||
71 | <br /> |
||
72 | |||
73 | <g:link action="addDevice"> |
||
74 | <erptr:icon w="add" /> |
||
75 | Add a new device |
||
76 | </g:link> |
||
77 | |||
78 | </erptr:box> |
||
79 | |||
80 | 6 | alexbesir | <erptr:box title="Database information"> |
81 | |||
82 | <p>Eneraptor system uses PostgreSQL database management system to store log data and HCI configuration.</p> |
||
83 | |||
84 | <br /> |
||
85 | |||
86 | <div id="dbConfigHolder"> |
||
87 | <g:remoteLink action="dbInfo" update="dbConfigHolder"><erptr:icon w="eye" />View database configuration</g:remoteLink> |
||
88 | </div> |
||
89 | |||
90 | <br /> |
||
91 | |||
92 | <g:link action="dbExec"><erptr:icon w="database_edit" />Execute SQL queries manually</g:link> |
||
93 | |||
94 | </erptr:box> |
||
95 | |||
96 | 3 | alexbesir | </body> |
97 | |||
98 | </html> |