File: status.html

package info (click to toggle)
mrs 6.0.5%2Bdfsg-2
  • links: PTS, VCS
  • area: main
  • in suites: stretch
  • size: 4,520 kB
  • ctags: 3,178
  • sloc: ansic: 37,529; cpp: 24,043; perl: 3,279; sh: 124; makefile: 8
file content (91 lines) | stat: -rw-r--r-- 3,280 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
<html xmlns="http://www.w3.org/1999/xhtml"
	xmlns:mrs="http://mrs.cmbi.ru.nl/mrs-web/ml"
	xml:lang="en" lang="en">
<head>
    <title>M6</title>

	<meta name="viewport" content="width=device-width, initial-scale=1" />
    <meta name="author" content="Maarten L. Hekkelman" />
    <meta name="generator" content="Japi" />
	<meta http-equiv="content-type" content="text/html; charset=utf-8" />

	<link rel="stylesheet" type="text/css" href="css/mrs-style.css" />

	<script src="scripts/jquery/jquery.js" type="text/javascript">
	</script>

	<script src="scripts/mrs.js" type="text/javascript">
	</script>

	<mrs:if test="${not mobile}">
	<script src="scripts/status.js" type="text/javascript">
	</script>
	</mrs:if>
	
	<mrs:if test="${mobile}">
	<script src="scripts/status-m.js" type="text/javascript">
	</script>
	</mrs:if>
</head>
<body>
	<mrs:include file="header.html" />
	
	<div id="main">
		
		<mrs:if test="${not mobile}">
		<table id="databanks" class="list status" cellspacing="0" cellpadding="0" style="width:100%;"
			xmlns:m2="http://mrs.cmbi.ru.nl/mrs-web/nl/my-ns">
		<caption>Indexed databanks</caption>
		<tr>
			<th><a href="#" onclick="Status.sortTable('databanks', 0);">ID</a> </th>
			<th><a href="#" onclick="Status.sortTable('databanks', 1);">Name</a></th>
			<th style="text-align:right"><a href="#" onclick="Status.sortTable('databanks', 2);">Entries</a></th>
			<th style="text-align:right"><a href="#" onclick="Status.sortTable('databanks', 3);">Size</a></th>
			<th>Version</th>
			<th><a href="#" onclick="Status.sortTable('databanks', 5);">Last Update</a></th>
	        <th colspan="2">Status</th>
		</tr>

		<mrs:iterate collection="statusDatabanks" var="db">
		<tr id="db-${db.id}" m2:keys="s=${db.id}|s=${db.name}|i=${db.entries}|i=${db.size}||s=${db.buildDate}">
			<td><a href="info?db=${db.id}">${db.id}</a></td>
			<td><a href="info?db=${db.id}">${db.name}</a></td>
			<td style="text-align:right"><mrs:if test="${db.entries}"><mrs:number f='#,##0' n='${db.entries}'/></mrs:if></td>
			<td style="text-align:right; white-space: nowrap;"><mrs:if test="${db.size}"><mrs:number f='#,##0B' n='${db.size}'/></mrs:if></td>
			<td>${db.version}</td>
			<td>${db.buildDate}</td>
			<td><canvas id='update-progress' width="102" height="10" style="display:none;" /></td>
			<td><span id='update-status' /></td>
		</tr>
		</mrs:iterate>
		</table>
		</mrs:if>

		<mrs:if test="${mobile}">
		<ul id="ul-db-list" class="status-list" xmlns:m2="http://mrs.cmbi.ru.nl/mrs-web/nl/my-ns">
			<mrs:iterate collection="statusDatabanks" var="db">
			<li id="db-${db.id}" m2:key="${db.buildDate}">
				<ul class="status-sub-list">
					<li>
						<a href="info?db=${db.id}">${db.id}</a>
						<span style="float:right">${db.name}</span>
						<div style="clear: both"/>
					</li>
					<li>
						<div id="active" style="display:none">
							<canvas id='update-progress' width="102" height="10" style="display:none;" />
							<span id='update-status' />
						</div>
						<div id="idle">
							<mrs:if test="${db.buildDate}"><li><em>updated</em> ${db.buildDate}</li></mrs:if>
							<mrs:if test="${empty db.buildDate}"><li><em>not indexed</em></li></mrs:if>
						</div>
					</li>
				</ul>
			</li>
			</mrs:iterate>
		</ul>
		</mrs:if>
	</div>
</body>
</html>