Freemarker support for UserBanner
git-svn-id: https://svn.libreccm.org/ccm/trunk@5977 8810af33-2d31-482b-a856-94f89814c4dfmaster
parent
761fd72872
commit
c67480dd41
|
|
@ -0,0 +1,42 @@
|
|||
<#ftl ns_prefixes={
|
||||
"bebop":"http://www.arsdigita.com/bebop/1.0",
|
||||
"cms":"http://www.arsdigita.com/cms/1.0",
|
||||
"nav":"http://ccm.redhat.com/navigation",
|
||||
"ui": "http://www.arsdigita.com/ui/1.0"}
|
||||
>
|
||||
|
||||
<#function getGreeting>
|
||||
<#return model["./ui:userBanner/@greeting"]>
|
||||
</#function>
|
||||
|
||||
<#function isLoggedIn>
|
||||
<#return (model["./ui:userBanner/@screenName"]?size > 0)
|
||||
</#function>
|
||||
|
||||
<#function isNotLoggedIn>
|
||||
<#return (model["./ui:userBanner/@screenName"]?size == 0)
|
||||
</#function>
|
||||
|
||||
<#function getChangePasswordUrl>
|
||||
<#return model["./ui:userBanner/@changePasswordURL"]>
|
||||
</#function>
|
||||
|
||||
<#function getLoginLink>
|
||||
<#return model["./ui:userBanner/@loginExcursionURL">
|
||||
</#function>
|
||||
|
||||
<#function getLogoutLink>
|
||||
<#return model["./ui:userBanner/@logoutURL">
|
||||
</#function>
|
||||
|
||||
<#function getScreenName>
|
||||
<#return model["./ui:userBanner/@screenName">
|
||||
</#function>
|
||||
|
||||
<#function getUserGivenName>
|
||||
<#return model["./ui:userBanner/@givenName">
|
||||
</#function>
|
||||
|
||||
<#function getUserFamilyName>
|
||||
<#return model["./ui:userBanner/@familyName">
|
||||
</#function>
|
||||
Loading…
Reference in New Issue