From d306c2edbbc171d5345b3378bd76ed5b69984316 Mon Sep 17 00:00:00 2001 From: "bugreport%peshkin.net" <> Date: Wed, 11 Aug 2004 20:53:43 +0000 Subject: Bug 241903: Add Environment Variable Authentication for apache auth and SSO patch by erik r=joel a=justdave --- template/en/default/global/useful-links.html.tmpl | 8 ++++++-- template/en/default/index.html.tmpl | 4 +++- template/en/default/sidebar.xul.tmpl | 2 ++ 3 files changed, 11 insertions(+), 3 deletions(-) (limited to 'template/en') diff --git a/template/en/default/global/useful-links.html.tmpl b/template/en/default/global/useful-links.html.tmpl index c04b60dd6..7e568372c 100644 --- a/template/en/default/global/useful-links.html.tmpl +++ b/template/en/default/global/useful-links.html.tmpl @@ -52,8 +52,12 @@ [% IF user.login %] [% ' | Sanity check' IF user.groups.tweakparams %] - | Log out - [% user.login FILTER html %] + [% IF user.get_flag('can_logout') %] + | Log out + [% ELSE %] + | Logged in as + [% END %] + [% user.login FILTER html %] [% ELSE %] [% IF Param('createemailregexp') %] | New Account diff --git a/template/en/default/index.html.tmpl b/template/en/default/index.html.tmpl index 5422061fd..d31a51d89 100644 --- a/template/en/default/index.html.tmpl +++ b/template/en/default/index.html.tmpl @@ -66,7 +66,9 @@ function addSidebar() {
[% IF user.id %]
Change password or user preferences
- Logout [% user.login FILTER html %]
+ [% IF user.get_flag('can_logout') %]
+ Logout [% user.login FILTER html %]
+ [% END %]
[% ELSE %]
Log in to an existing account
[% IF Param('createemailregexp') %]
diff --git a/template/en/default/sidebar.xul.tmpl b/template/en/default/sidebar.xul.tmpl
index 60ae33dbd..802fd9f23 100644
--- a/template/en/default/sidebar.xul.tmpl
+++ b/template/en/default/sidebar.xul.tmpl
@@ -95,7 +95,9 @@ function normal_keypress_handler( aEvent ) {
[%- IF user.groups.tweakparams %]