Statistics
| Revision:

root / hci / trunk / eneraptor-web-app / grails-app / views / sysLog / browse.gsp @ 6

History | View | Annotate | Download (1.21 KB)

1
<html>
2

    
3
<head>
4
	<title>Log &raquo; Browsing</title>
5
	<meta name="layout" content="main" />
6
</head>
7

    
8
<body>
9
	
10
	<erptr:box title="Browse log">
11
	
12
		<table width="100%">
13
			<thead>
14
				<tr>
15
					<th width="40px"><a href="#">Id</a></th>
16
					<th width="200px"><a href="#">Date</a></th>
17
					<th width="200px"><a href="#">Source (device)</a></th>
18
					<th><a href="#">Data</a></th>
19
					<th width="60px"><a href="#">Options</a></th>
20
	            </tr>
21
			</thead>
22
			<tbody>
23
				<g:each in="${data}" var="entry">
24
					<tr>
25
						<td class="a-center">${entry.id}</td>
26
						<td><a href="#">${entry.dateRecieved}</a></td>
27
						<td><a href="#">
28
							<g:if test="${icons[entry.deviceId]}">
29
								<erptr:icon w="${icons[entry.deviceId]}" />
30
							</g:if>
31
							<g:if test="${devices[entry.deviceId]}">
32
								${devices[entry.deviceId]}
33
							</g:if>
34
							<g:else>
35
								${entry.deviceId}
36
							</g:else>
37
						</a></td>
38
						<td>${entry.reportedData}</td>
39
						<td><erptr:logEntryOptions for="${entry.id}" /></td>
40
					</tr>
41
				</g:each>
42
			</tbody>
43
		</table>
44
		<g:if test="${data.size() < 1}">
45
			<center>The log is empty.</center>		
46
		</g:if>
47
		
48
	</erptr:box>
49
	
50
</body>
51

    
52
</html>