Fixed: Rainbow theme: bug in avatar.ftl when the last name does not exist
(OFBIZ-10177) Both 1st and last names must be present else it's confusing and better to show the username git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-framework/trunk@1821965 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
@@ -31,13 +31,9 @@ under the License.
|
||||
<img src="/rainbowstone/images/avatar.svg" alt="user">
|
||||
</#if>
|
||||
<div id="user-name" <#if userLogin.partyId??>onclick="javascript:location.href='/partymgr/control/viewprofile?partyId=${userLogin.partyId}'"</#if>>
|
||||
<#if person?exists>
|
||||
<#if person.firstName??>
|
||||
<span>${person.firstName}</span>
|
||||
<span>${person.lastName?upper_case}</span>
|
||||
<#else>
|
||||
<span>${userLogin.userLoginId}</span>
|
||||
</#if>
|
||||
<#if (person.firstName)?? && (person.lastName)??>
|
||||
<span>${person.firstName}</span>
|
||||
<span>${person.lastName?upper_case}</span>
|
||||
<#else>
|
||||
<span>${userLogin.userLoginId}</span>
|
||||
</#if>
|
||||
|
||||
Reference in New Issue
Block a user