summaryrefslogtreecommitdiffstats
path: root/base/tps/shared/webapps/tps/ui
diff options
context:
space:
mode:
authorEndi S. Dewata <edewata@redhat.com>2015-04-07 22:01:54 -0400
committerEndi S. Dewata <edewata@redhat.com>2015-04-08 14:38:26 -0400
commit648de7a10fb4c7d43c6550b577617067c70bbf7e (patch)
treeb4c0c95358314c3c4f5b46bd0465852c7baffc9c /base/tps/shared/webapps/tps/ui
parentc4ee90c89a0b3c61b18f865e6650b27e156a9dcb (diff)
downloadpki-648de7a10fb4c7d43c6550b577617067c70bbf7e.tar.gz
pki-648de7a10fb4c7d43c6550b577617067c70bbf7e.tar.xz
pki-648de7a10fb4c7d43c6550b577617067c70bbf7e.zip
Added interface to show TPS token certificates.
The TPS REST service, CLI, and UI have been modified to provide an interface to search for certificates belonging to a token. https://fedorahosted.org/pki/ticket/1164
Diffstat (limited to 'base/tps/shared/webapps/tps/ui')
-rw-r--r--base/tps/shared/webapps/tps/ui/certs.html2
-rw-r--r--base/tps/shared/webapps/tps/ui/index.html12
-rw-r--r--base/tps/shared/webapps/tps/ui/token.html1
3 files changed, 14 insertions, 1 deletions
diff --git a/base/tps/shared/webapps/tps/ui/certs.html b/base/tps/shared/webapps/tps/ui/certs.html
index a87c2dd32..52e229f7b 100644
--- a/base/tps/shared/webapps/tps/ui/certs.html
+++ b/base/tps/shared/webapps/tps/ui/certs.html
@@ -18,6 +18,8 @@
<div class="pki-header">
<ol class="breadcrumb">
<li><a href="#">Home</a></li>
+ <li class="pki-breadcrumb-tokens" style="display: none;"><a href="#tokens">Tokens</a></li>
+ <li class="pki-breadcrumb-token" style="display: none;"><a href="#tokens/${tokenID}">Token ${id}</a></li>
<li class="active"><strong>Certificates</strong></li>
</ol>
diff --git a/base/tps/shared/webapps/tps/ui/index.html b/base/tps/shared/webapps/tps/ui/index.html
index eddceefd7..74adeadd1 100644
--- a/base/tps/shared/webapps/tps/ui/index.html
+++ b/base/tps/shared/webapps/tps/ui/index.html
@@ -17,6 +17,7 @@
--- END COPYRIGHT BLOCK --- -->
<html>
<head>
+ <title>Token Processing System</title>
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link href="/pki/css/patternfly.css" rel="stylesheet" media="screen, print">
<link href="/pki/css/pki-ui.css" rel="stylesheet" type="text/css">
@@ -117,7 +118,8 @@ $(function() {
router.route("certs", "certs", function() {
new CertificatesPage({
el: content,
- url: "certs.html"
+ url: "certs.html",
+ collection: new CertificateCollection()
}).open();
});
@@ -276,6 +278,14 @@ $(function() {
}).open();
});
+ router.route("tokens/:id/certs", "certs", function(id) {
+ new CertificatesPage({
+ el: content,
+ url: "certs.html",
+ collection: new CertificateCollection({ tokenID: id })
+ }).open();
+ });
+
router.route("new-token", "new-token", function() {
new TokenPage({
el: content,
diff --git a/base/tps/shared/webapps/tps/ui/token.html b/base/tps/shared/webapps/tps/ui/token.html
index 78384acfe..8be08f09a 100644
--- a/base/tps/shared/webapps/tps/ui/token.html
+++ b/base/tps/shared/webapps/tps/ui/token.html
@@ -29,6 +29,7 @@
<span class="pki-menu" style="display: none;">
<a name="edit" href="#">Edit</a><br>
<a name="changeStatus" href="#">Change Status</a><br>
+<a name="showCerts" href="#">Show Certificates</a><br>
</span>
<span class="pki-buttons" style="display: none;">