mirror of
https://github.com/Alfresco/alfresco-community-repo.git
synced 2025-07-31 17:39:05 +00:00
- Initial cut of site members page (no interaction yet)
- I18N of join/leave buttons in site finder - Made start page of Members area the site members page rather than invite git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@10385 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
@@ -1,15 +1,24 @@
|
||||
<#macro membershipJSON site role person>
|
||||
<#escape x as jsonUtils.encodeJSONString(x)>
|
||||
{
|
||||
"role" : "${role}",
|
||||
"person":
|
||||
{
|
||||
"userName" : "${person.properties.userName}",
|
||||
"url" : "${url.serviceContext + "/api/people/" + person.properties.userName}",
|
||||
"firstName" : "${person.properties.firstName}",
|
||||
"lastName" : "${person.properties.lastName}"
|
||||
},
|
||||
"url" : "${url.serviceContext + "/api/sites/" + site.shortName + "/memberships/" + person.properties.userName}"
|
||||
}
|
||||
</#escape>
|
||||
<#escape x as jsonUtils.encodeJSONString(x)>
|
||||
{
|
||||
"role" : "${role}",
|
||||
"person":
|
||||
{
|
||||
"userName" : "${person.properties.userName}",
|
||||
"firstName" : "${person.properties.firstName}",
|
||||
"lastName" : "${person.properties.lastName}",
|
||||
<#if person.assocs["cm:avatar"]??>
|
||||
"avatar" : "${"api/node/" + person.assocs["cm:avatar"][0].nodeRef?string?replace('://','/') + "/content/thumbnails/avatar"}",
|
||||
</#if>
|
||||
<#if person.properties.jobtitle??>
|
||||
"jobtitle" : "${person.properties.jobtitle}",
|
||||
</#if>
|
||||
<#if person.properties.organization??>
|
||||
"organization" : "${person.properties.organization}",
|
||||
</#if>
|
||||
"url" : "${url.serviceContext + "/api/people/" + person.properties.userName}"
|
||||
},
|
||||
"url" : "${url.serviceContext + "/api/sites/" + site.shortName + "/memberships/" + person.properties.userName}"
|
||||
}
|
||||
</#escape>
|
||||
</#macro>
|
Reference in New Issue
Block a user