summaryrefslogtreecommitdiffstats
path: root/install/share
diff options
context:
space:
mode:
authorPetr Vobornik <pvoborni@redhat.com>2011-08-05 14:58:02 +0200
committerAdam Young <ayoung@redhat.com>2011-08-08 13:49:26 -0400
commitb9365746723421971d61fab86ed2bc3782cf2140 (patch)
treef2d2369f08748954c8f89df6559e71fe84dbce4f /install/share
parentd08dcb40e1db63d4b40d911bb15a656f0dcbf8ae (diff)
downloadfreeipa-b9365746723421971d61fab86ed2bc3782cf2140.tar.gz
freeipa-b9365746723421971d61fab86ed2bc3782cf2140.tar.xz
freeipa-b9365746723421971d61fab86ed2bc3782cf2140.zip
Redirection after changing browser configuration
https://fedorahosted.org/freeipa/ticket/1502 Added redirection link. CSS styling of configuration page. Some CSS cleaning.
Diffstat (limited to 'install/share')
-rw-r--r--install/share/preferences.html.template29
1 files changed, 29 insertions, 0 deletions
diff --git a/install/share/preferences.html.template b/install/share/preferences.html.template
index ef657e96c..621301f1a 100644
--- a/install/share/preferences.html.template
+++ b/install/share/preferences.html.template
@@ -2,10 +2,33 @@
<html>
<head>
<title>Automatically set browser preferences</title>
+ <style type="text/css">
+ body {
+ font-family:"Liberation Sans",Arial,Sans;
+ font-size:11px;
+ }
+ .textblock {
+ text-align: left;
+ margin-top: 1.0em;
+ font-size: 1.1em;
+ }
+ a {
+ color: #1D85D5;
+ font-weight: normal;
+ text-decoration: none;
+ text-transform: none;
+ }
+ </style>
</head>
<body>
<form action="undefined" method="get">
<input type=button onclick="setPreferences()" name="prefs" value="Configure Firefox">
+<div id="success" class="textblock" style="display:none;">
+ <p>Browser configured.</p>
+ <p>
+ <a href="/ipa/ui" id="redirect_link" target="_top">Click here to return to the Web UI.</a>
+ </p>
+</div>
</form>
<script type="text/javascript">
@@ -40,6 +63,12 @@
netscape.security.PrivilegeManager.disablePrivilege(privilege);
alert("Successfully configured Firefox for single sign-on.");
+
+ var redirect_link = document.getElementById('redirect_link');
+ redirect_link.href = "https://" + location.hostname + location.port + "/ipa/ui";
+
+ var successDiv = document.getElementById('success');
+ successDiv.style['display'] = "block";
} catch (e) {
alert("Unable to apply recommended settings.\n\n" +
"Click on the Certificate Authority link and select trust for all, " +