forked from openrs2/openrs2
These pages will list missing groups and keys in the future, which we won't be able to fit in the table. Signed-off-by: Graham <gpe@openrs2.org>bzip2
parent
47b1bd5bf0
commit
aa7b59e4b9
@ -0,0 +1,69 @@ |
|||||||
|
<!DOCTYPE html> |
||||||
|
<html xmlns:th="http://www.thymeleaf.org" lang="en"> |
||||||
|
<head th:replace="layout.html :: head(title='Cache')"> |
||||||
|
<title>Cache - OpenRS2 Archive</title> |
||||||
|
<link rel="stylesheet" href="/webjars/bootstrap/css/bootstrap.min.css" /> |
||||||
|
</head> |
||||||
|
<body> |
||||||
|
<nav th:replace="layout.html :: nav"></nav> |
||||||
|
<main class="container"> |
||||||
|
<h1>Cache</h1> |
||||||
|
|
||||||
|
<!--/*@thymesVar id="cache" type="org.openrs2.archive.cache.CacheExporter.Cache"*/--> |
||||||
|
<table class="table table-striped table-bordered table-hover"> |
||||||
|
<tr class="thead-dark"> |
||||||
|
<th>Game</th> |
||||||
|
<td th:text="${cache.game}">runescape</td> |
||||||
|
</tr> |
||||||
|
<tr class="thead-dark"> |
||||||
|
<th>Build</th> |
||||||
|
<td th:text="${cache.build}">550</td> |
||||||
|
</tr> |
||||||
|
<tr class="thead-dark"> |
||||||
|
<th>Timestamp</th> |
||||||
|
<td th:text="${#temporals.format(cache.timestamp, 'yyyy-MM-dd HH:mm:ss')}"></td> |
||||||
|
</tr> |
||||||
|
<tr class="thead-dark"> |
||||||
|
<th>Name</th> |
||||||
|
<td th:text="${cache.name}"></td> |
||||||
|
</tr> |
||||||
|
<tr class="thead-dark"> |
||||||
|
<th>Description</th> |
||||||
|
<td th:text="${cache.description}"></td> |
||||||
|
</tr> |
||||||
|
<tr class="thead-dark"> |
||||||
|
<th>Indexes</th> |
||||||
|
<td th:class="${cache.archiveStats}? (${cache.archiveStats.allIndexesValid}? 'table-success' : 'table-danger')" |
||||||
|
th:text="${cache.archiveStats}? ${cache.archiveStats.validIndexes} + ' / ' + ${cache.archiveStats.indexes} + ' (' + ${#numbers.formatPercent(cache.archiveStats.validIndexesFraction, 1, 2)} + ')' : 'Calculating...'"> |
||||||
|
Calculating... |
||||||
|
</td> |
||||||
|
</tr> |
||||||
|
<tr class="thead-dark"> |
||||||
|
<th>Groups</th> |
||||||
|
<td th:class="${cache.groupStats}? (${cache.groupStats.allGroupsValid}? 'table-success' : 'table-warning')" |
||||||
|
th:text="${cache.groupStats}? ${#numbers.formatInteger(cache.groupStats.validGroups, 1, 'COMMA')} + ' / ' + ${#numbers.formatInteger(cache.groupStats.groups, 1, 'COMMA')} + ' (' + ${#numbers.formatPercent(cache.groupStats.validGroupsFraction, 1, 2)} + ')' : 'Calculating...'"> |
||||||
|
Calculating... |
||||||
|
</td> |
||||||
|
</tr> |
||||||
|
<tr class="thead-dark"> |
||||||
|
<th>Keys<sup><a href="/caches#empty-locs">1</a></sup></th> |
||||||
|
<td th:class="${cache.groupStats}? (${cache.groupStats.allKeysValid}? 'table-success' : 'table-warning')" |
||||||
|
th:text="${cache.groupStats}? ${#numbers.formatInteger(cache.groupStats.validKeys, 1, 'COMMA')} + ' / ' + ${#numbers.formatInteger(cache.groupStats.keys, 1, 'COMMA')} + ' (' + ${#numbers.formatPercent(cache.groupStats.validKeysFraction, 1, 2)} + ')' : 'Calculating...'"> |
||||||
|
Calculating... |
||||||
|
</td> |
||||||
|
</tr> |
||||||
|
<tr class="thead-dark"> |
||||||
|
<th>Download</th> |
||||||
|
<td> |
||||||
|
<div class="btn-group"> |
||||||
|
<a th:href="${'/caches/' + cache.id + '.zip'}" |
||||||
|
class="btn btn-primary btn-sm">Cache</a> |
||||||
|
<a th:href="${'/caches/' + cache.id + '.json'}" |
||||||
|
class="btn btn-primary btn-sm">Keys</a> |
||||||
|
</div> |
||||||
|
</td> |
||||||
|
</tr> |
||||||
|
</table> |
||||||
|
</main> |
||||||
|
</body> |
||||||
|
</html> |
@ -0,0 +1,23 @@ |
|||||||
|
<!DOCTYPE html> |
||||||
|
<html xmlns:th="http://www.thymeleaf.org" lang="en"> |
||||||
|
<head th:fragment="head"> |
||||||
|
<!--/*@thymesVar id="title" type="java.lang.String"*/--> |
||||||
|
<title th:text="${title}? ${title} + ' - OpenRS2 Archive' : 'OpenRS2 Archive'">OpenRS2 Archive</title> |
||||||
|
<link rel="stylesheet" href="/webjars/bootstrap/css/bootstrap.min.css" /> |
||||||
|
</head> |
||||||
|
<body> |
||||||
|
<nav class="navbar navbar-dark bg-dark mb-4" th:fragment="nav"> |
||||||
|
<div class="container"> |
||||||
|
<a class="navbar-brand" href="/">OpenRS2 Archive</a> |
||||||
|
<ul class="navbar-nav mr-auto"> |
||||||
|
<!--/*@thymesVar id="active" type="java.lang.String"*/--> |
||||||
|
<li class="nav-item" th:classappend="${active == 'caches'}? 'active'"> |
||||||
|
<a class="nav-link" href="/caches">Caches</a> |
||||||
|
</li> |
||||||
|
</ul> |
||||||
|
</div> |
||||||
|
</nav> |
||||||
|
<main class="container"> |
||||||
|
</main> |
||||||
|
</body> |
||||||
|
</html> |
Loading…
Reference in new issue