You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@ofbiz.apache.org by bu...@apache.org on 2009/10/09 15:04:54 UTC
svn commit: r823538 - /ofbiz/trunk/themes/bluelight/includes/header.ftl
Author: buscob
Date: Fri Oct 9 13:04:53 2009
New Revision: 823538
URL: http://svn.apache.org/viewvc?rev=823538&view=rev
Log:
Added externalLoginKey to the viewprofile link so that no login is requested when clicking on the user name in the header.
Modified:
ofbiz/trunk/themes/bluelight/includes/header.ftl
Modified: ofbiz/trunk/themes/bluelight/includes/header.ftl
URL: http://svn.apache.org/viewvc/ofbiz/trunk/themes/bluelight/includes/header.ftl?rev=823538&r1=823537&r2=823538&view=diff
==============================================================================
--- ofbiz/trunk/themes/bluelight/includes/header.ftl (original)
+++ ofbiz/trunk/themes/bluelight/includes/header.ftl Fri Oct 9 13:04:53 2009
@@ -16,6 +16,8 @@
specific language governing permissions and limitations
under the License.
-->
+<#assign externalKeyParam = "&externalLoginKey=" + requestAttributes.externalLoginKey?if_exists>
+
<#if (requestAttributes.person)?exists><#assign person = requestAttributes.person></#if>
<#if (requestAttributes.partyGroup)?exists><#assign partyGroup = requestAttributes.partyGroup></#if>
<#assign docLangAttr = locale.toString()?replace("_", "-")>
@@ -128,12 +130,11 @@
<li class="logo-area"><a href="<@o...@ofbizUrl>"><img alt="${layoutSettings.companyName}" src="<@o...@ofbizContentUrl>"/></a></li>
</#if>
</#if>
-
<li class="control-area">
<ul id="preferences-menu">
<#if userLogin?exists>
<#if userLogin.partyId?exists>
- <li class="user"><a href="/partymgr/control/viewprofile?partyId=${userLogin.partyId}">${userName}</a></li>
+ <li class="user"><a href="/partymgr/control/viewprofile?partyId=${userLogin.partyId}${externalKeyParam?if_exists}">${userName}</a></li>
<#else>
<li class="user">${userName}</li>
</#if>