summaryrefslogtreecommitdiffstats
path: root/base/tps
diff options
context:
space:
mode:
authorEndi S. Dewata <edewata@redhat.com>2017-02-21 09:34:20 -0600
committerEndi S. Dewata <edewata@redhat.com>2017-02-24 17:58:37 +0100
commited91ed91b3e4bb346215969d00643f1fb5c10cce (patch)
treee386b96689e36dbac3d5ff24437337b80db66923 /base/tps
parentec0da23e5215f73c05a632da55b95acd52506a2b (diff)
downloadpki-ed91ed91b3e4bb346215969d00643f1fb5c10cce.tar.gz
pki-ed91ed91b3e4bb346215969d00643f1fb5c10cce.tar.xz
pki-ed91ed91b3e4bb346215969d00643f1fb5c10cce.zip
Added access banner to TPS UI.
All pages in TPS UI have been modified to retrieve access banner and display it once at the beginning of the SSL connection. https://fedorahosted.org/pki/ticket/2582
Diffstat (limited to 'base/tps')
-rwxr-xr-xbase/tps/shared/webapps/tps/404.html9
-rwxr-xr-xbase/tps/shared/webapps/tps/500.html9
-rw-r--r--base/tps/shared/webapps/tps/GenUnexpectedError.template9
-rw-r--r--base/tps/shared/webapps/tps/index.jsp5
-rw-r--r--base/tps/shared/webapps/tps/ui/index.jsp1
5 files changed, 30 insertions, 3 deletions
diff --git a/base/tps/shared/webapps/tps/404.html b/base/tps/shared/webapps/tps/404.html
index dc78f60d2..0aaf29cdf 100755
--- a/base/tps/shared/webapps/tps/404.html
+++ b/base/tps/shared/webapps/tps/404.html
@@ -17,6 +17,7 @@
--- END COPYRIGHT BLOCK --- -->
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
+<head>
<script language=javascript>
var url = document.URL;
var protocol = location.protocol;
@@ -24,8 +25,14 @@ var hostname = location.hostname;
var port = location.port;
</script>
-<head>
<title>TPS 404 Error!</title>
+<script src="/pki/js/jquery.js"></script>
+<script src="/pki/js/jquery.i18n.properties.js"></script>
+<script src="/pki/js/underscore.js"></script>
+<script src="/pki/js/backbone.js"></script>
+<script src="/pki/js/pki.js"></script>
+<script src="/pki/js/pki-banner.js"></script>
+
<!-- always expand ALL relative paths -->
<script language=javascript>
document.write('<link rel="shortcut icon" href="');
diff --git a/base/tps/shared/webapps/tps/500.html b/base/tps/shared/webapps/tps/500.html
index 9cd22f36a..9e74fb118 100755
--- a/base/tps/shared/webapps/tps/500.html
+++ b/base/tps/shared/webapps/tps/500.html
@@ -17,6 +17,7 @@
--- END COPYRIGHT BLOCK --- -->
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
+<head>
<script language=javascript>
var url = document.URL;
var protocol = location.protocol;
@@ -24,8 +25,14 @@ var hostname = location.hostname;
var port = location.port;
</script>
-<head>
<title>TPS 500 Error!</title>
+<script src="/pki/js/jquery.js"></script>
+<script src="/pki/js/jquery.i18n.properties.js"></script>
+<script src="/pki/js/underscore.js"></script>
+<script src="/pki/js/backbone.js"></script>
+<script src="/pki/js/pki.js"></script>
+<script src="/pki/js/pki-banner.js"></script>
+
<!-- always expand ALL relative paths -->
<script language=javascript>
document.write('<link rel="shortcut icon" href="');
diff --git a/base/tps/shared/webapps/tps/GenUnexpectedError.template b/base/tps/shared/webapps/tps/GenUnexpectedError.template
index ea545c145..405070b71 100644
--- a/base/tps/shared/webapps/tps/GenUnexpectedError.template
+++ b/base/tps/shared/webapps/tps/GenUnexpectedError.template
@@ -17,10 +17,17 @@
--- END COPYRIGHT BLOCK --- -->
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<HTML>
+<head>
<CMS_TEMPLATE>
<TITLE>TPS Processing Error!</TITLE>
-
+<script src="/pki/js/jquery.js"></script>
+<script src="/pki/js/jquery.i18n.properties.js"></script>
+<script src="/pki/js/underscore.js"></script>
+<script src="/pki/js/backbone.js"></script>
+<script src="/pki/js/pki.js"></script>
+<script src="/pki/js/pki-banner.js"></script>
+</head>
<BODY BGCOLOR="white">
<font size="+1" face="PrimaSans BT, Verdana, Arial, Helvetica, sans-serif">
diff --git a/base/tps/shared/webapps/tps/index.jsp b/base/tps/shared/webapps/tps/index.jsp
index ad4f75ec1..3c9abf816 100644
--- a/base/tps/shared/webapps/tps/index.jsp
+++ b/base/tps/shared/webapps/tps/index.jsp
@@ -21,7 +21,12 @@
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link href="/pki/css/patternfly.css" rel="stylesheet" media="screen, print">
<script src="/pki/js/jquery.js"></script>
+ <script src="/pki/js/jquery.i18n.properties.js"></script>
+ <script src="/pki/js/underscore.js"></script>
+ <script src="/pki/js/backbone.js"></script>
<script src="/pki/js/bootstrap.js"></script>
+ <script src="/pki/js/pki.js"></script>
+ <script src="/pki/js/pki-banner.js"></script>
<script src="/tps/js/account.js"></script>
<script>
$(function() {
diff --git a/base/tps/shared/webapps/tps/ui/index.jsp b/base/tps/shared/webapps/tps/ui/index.jsp
index bae74ce8f..165a0284c 100644
--- a/base/tps/shared/webapps/tps/ui/index.jsp
+++ b/base/tps/shared/webapps/tps/ui/index.jsp
@@ -28,6 +28,7 @@
<script src="/pki/js/patternfly.js"></script>
<script src="/pki/js/pki.js"></script>
<script src="/pki/js/pki-ui.js"></script>
+ <script src="/pki/js/pki-banner.js"></script>
<script src="/tps/js/tps.js"></script>
<script src="/tps/js/account.js"></script>
<script src="/tps/js/activity.js"></script>