diff options
author | Petr VobornÃk <pvoborni@redhat.com> | 2012-02-24 15:31:55 +0100 |
---|---|---|
committer | Rob Crittenden <rcritten@redhat.com> | 2012-02-28 23:58:51 -0500 |
commit | 87901ed7098dff72e4a62dfe582c2b83439b7280 (patch) | |
tree | 9fcf4354796ac72d68b48ead826f6b3c8db0a818 /install/ui/index.html | |
parent | a5a55ceff3822ede55ad817ede0da5712fb75651 (diff) | |
download | freeipa-87901ed7098dff72e4a62dfe582c2b83439b7280.tar.gz freeipa-87901ed7098dff72e4a62dfe582c2b83439b7280.tar.xz freeipa-87901ed7098dff72e4a62dfe582c2b83439b7280.zip |
Added logout button
Logout button was added to Web UI.
Click on logout button executes session_logout command. If command succeeds or xhr stutus is 401 (unauthorized - already logged out) page is redirected to logout.html.
logout.html is a simple page with "You have been logged out" text and a link to return back to main page.
https://fedorahosted.org/freeipa/ticket/2363
Diffstat (limited to 'install/ui/index.html')
-rw-r--r-- | install/ui/index.html | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/install/ui/index.html b/install/ui/index.html index db314331a..6b1be869b 100644 --- a/install/ui/index.html +++ b/install/ui/index.html @@ -66,14 +66,17 @@ <div id="header"> <span class="header-logo"> - <a href="#"><img src="images/ipa-logo.png" /><img src="images/ipa-banner.png" /></a> + <a href="#"><img src="images/ipa-logo.png" /><img src="images/ipa-banner.png" /></a> </span> <span class="header-right"> <span id="loggedinas" class="header-loggedinas"> - <a href="#"><span id="login_header">Logged in as</span>: <strong>user@FREEIPA.ORG</strong></a> + <a href="#"><span id="login_header">Logged in as</span>: <strong>user@FREEIPA.ORG</strong></a> + </span> + <span class="header-loggedinas"> + | <a href="#logout" id="logout">Logout</a> </span> <span id="header-network-activity-indicator" class="network-activity-indicator"> - <img src="images/spinner-header.gif" /> + <img src="images/spinner-header.gif" /> </span> </span> </div> |