Add link to download keys in the text format

Signed-off-by: Graham <gpe@openrs2.org>
Graham 4 years ago
parent f6961a50f1
commit da3cc57b3f
  1. 24
      archive/src/main/resources/org/openrs2/archive/templates/caches/index.html
  2. 6
      archive/src/main/resources/org/openrs2/archive/templates/caches/show.html
  3. 2
      archive/src/main/resources/org/openrs2/archive/templates/index.html
  4. 2
      archive/src/main/resources/org/openrs2/archive/templates/layout.html

@ -4,6 +4,8 @@
<title>Caches - OpenRS2 Archive</title> <title>Caches - OpenRS2 Archive</title>
<link rel="stylesheet" href="/webjars/bootstrap/css/bootstrap.min.css" /> <link rel="stylesheet" href="/webjars/bootstrap/css/bootstrap.min.css" />
<link rel="stylesheet" href="/static/css/openrs2.css" /> <link rel="stylesheet" href="/static/css/openrs2.css" />
<script src="/webjars/jquery/jquery.min.js" defer></script>
<script src="/webjars/bootstrap/js/bootstrap.bundle.min.js" defer></script>
</head> </head>
<body> <body>
<nav th:replace="layout.html :: nav(active='caches')"></nav> <nav th:replace="layout.html :: nav(active='caches')"></nav>
@ -65,10 +67,24 @@
</td> </td>
<td> <td>
<div class="btn-group"> <div class="btn-group">
<a th:href="${'/caches/' + cache.id + '.zip'}" <div class="btn-group">
class="btn btn-primary btn-sm">Cache</a> <button type="button"
<a th:href="${'/caches/' + cache.id + '/keys.json'}" class="btn btn-primary btn-sm dropdown-toggle"
class="btn btn-primary btn-sm">Keys</a> data-toggle="dropdown">
Download
</button>
<ul class="dropdown-menu">
<li><a th:href="${'/caches/' + cache.id + '.zip'}"
class="dropdown-item">Cache</a></li>
<li>
<hr class="dropdown-divider" />
</li>
<li><a th:href="${'/caches/' + cache.id + '/keys.json'}"
class="dropdown-item">Keys (JSON)</a></li>
<li><a th:href="${'/caches/' + cache.id + '/keys.zip'}"
class="dropdown-item">Keys (Text)</a></li>
</ul>
</div>
<a th:href="${'/caches/' + cache.id}" <a th:href="${'/caches/' + cache.id}"
class="btn btn-secondary btn-sm">More</a> class="btn btn-secondary btn-sm">More</a>
</div> </div>

@ -4,6 +4,8 @@
<title>Cache - OpenRS2 Archive</title> <title>Cache - OpenRS2 Archive</title>
<link rel="stylesheet" href="/webjars/bootstrap/css/bootstrap.min.css" /> <link rel="stylesheet" href="/webjars/bootstrap/css/bootstrap.min.css" />
<link rel="stylesheet" href="/static/css/openrs2.css" /> <link rel="stylesheet" href="/static/css/openrs2.css" />
<script src="/webjars/jquery/jquery.min.js" defer></script>
<script src="/webjars/bootstrap/js/bootstrap.bundle.min.js" defer></script>
</head> </head>
<body> <body>
<nav th:replace="layout.html :: nav"></nav> <nav th:replace="layout.html :: nav"></nav>
@ -70,7 +72,9 @@
<a th:href="${'/caches/' + cache.id + '.zip'}" <a th:href="${'/caches/' + cache.id + '.zip'}"
class="btn btn-primary btn-sm">Cache</a> class="btn btn-primary btn-sm">Cache</a>
<a th:href="${'/caches/' + cache.id + '/keys.json'}" <a th:href="${'/caches/' + cache.id + '/keys.json'}"
class="btn btn-primary btn-sm">Keys</a> class="btn btn-primary btn-sm">Keys (JSON)</a>
<a th:href="${'/caches/' + cache.id + '/keys.zip'}"
class="btn btn-primary btn-sm">Keys (Text)</a>
</div> </div>
</td> </td>
</tr> </tr>

@ -4,6 +4,8 @@
<title>OpenRS2 Archive</title> <title>OpenRS2 Archive</title>
<link rel="stylesheet" href="/webjars/bootstrap/css/bootstrap.min.css" /> <link rel="stylesheet" href="/webjars/bootstrap/css/bootstrap.min.css" />
<link rel="stylesheet" href="/static/css/openrs2.css" /> <link rel="stylesheet" href="/static/css/openrs2.css" />
<script src="/webjars/jquery/jquery.min.js" defer></script>
<script src="/webjars/bootstrap/js/bootstrap.bundle.min.js" defer></script>
</head> </head>
<body> <body>
<nav th:replace="layout.html :: nav"></nav> <nav th:replace="layout.html :: nav"></nav>

@ -5,6 +5,8 @@
<title th:text="${title}? ${title} + ' - OpenRS2 Archive' : 'OpenRS2 Archive'">OpenRS2 Archive</title> <title th:text="${title}? ${title} + ' - OpenRS2 Archive' : 'OpenRS2 Archive'">OpenRS2 Archive</title>
<link rel="stylesheet" href="/webjars/bootstrap/css/bootstrap.min.css" /> <link rel="stylesheet" href="/webjars/bootstrap/css/bootstrap.min.css" />
<link rel="stylesheet" href="/static/css/openrs2.css" /> <link rel="stylesheet" href="/static/css/openrs2.css" />
<script src="/webjars/jquery/jquery.min.js" defer></script>
<script src="/webjars/bootstrap/js/bootstrap.bundle.min.js" defer></script>
</head> </head>
<body> <body>
<nav class="navbar navbar-dark navbar-expand bg-dark mb-4" th:fragment="nav"> <nav class="navbar navbar-dark navbar-expand bg-dark mb-4" th:fragment="nav">

Loading…
Cancel
Save