|
|
|
@ -33,40 +33,46 @@
|
|
|
|
|
<div class="subheader-right"> |
|
|
|
|
<#if user_name != "" > |
|
|
|
|
<div class="name-user"> |
|
|
|
|
<span class="fa fa-user-circle"></span> |
|
|
|
|
${user_name} |
|
|
|
|
</div> |
|
|
|
|
<div class="info-user"> |
|
|
|
|
<#assign organizationservice = serviceLocator.findService('com.liferay.portal.service.OrganizationLocalService') /> |
|
|
|
|
<#assign organizations = organizationservice.getUserOrganizations(user_id) > |
|
|
|
|
<#assign org_names = ""> |
|
|
|
|
<#if organizations?has_content> |
|
|
|
|
<#list organizations as org> |
|
|
|
|
<#assign org_names = org_names+" - ${org.getName()}"> |
|
|
|
|
</#list> |
|
|
|
|
</#if> |
|
|
|
|
<#if org_names?has_content> |
|
|
|
|
<p class="info-user__location">${org_names?substring(3)}</p> |
|
|
|
|
</#if> |
|
|
|
|
<div> |
|
|
|
|
<span class="fa fa-user-circle"></span> |
|
|
|
|
${user_name} |
|
|
|
|
</div> |
|
|
|
|
<div class="div_permessi"> |
|
|
|
|
Permessi |
|
|
|
|
<div class="info-user"> |
|
|
|
|
<#assign organizationservice = serviceLocator.findService('com.liferay.portal.service.OrganizationLocalService') /> |
|
|
|
|
<#assign organizations = organizationservice.getUserOrganizations(user_id) > |
|
|
|
|
<#assign org_names = ""> |
|
|
|
|
<#if organizations?has_content> |
|
|
|
|
<#list organizations as org> |
|
|
|
|
<#assign org_names = org_names+" - ${org.getName()}"> |
|
|
|
|
</#list> |
|
|
|
|
</#if> |
|
|
|
|
<#if org_names?has_content> |
|
|
|
|
<p class="info-user__location">${org_names?substring(3)}</p> |
|
|
|
|
</#if> |
|
|
|
|
|
|
|
|
|
<#assign userGroupRoleService = serviceLocator.findService('com.liferay.portal.service.UserGroupRoleLocalService') /> |
|
|
|
|
<#assign roles = userGroupRoleService.getUserGroupRoles(user_id) > |
|
|
|
|
<#assign role_names = ""> |
|
|
|
|
<#if roles?has_content> |
|
|
|
|
<#list roles as role> |
|
|
|
|
<#assign roleName = role.getRole().getName()> |
|
|
|
|
<#if !roleName?matches('.*Owner') > |
|
|
|
|
<#assign roleName = roleName?replace('portos_', '')?replace('_',' ')?capitalize> |
|
|
|
|
<#if !role_names?contains(roleName) > |
|
|
|
|
<#assign role_names = role_names+", ${roleName}"> |
|
|
|
|
</#if> |
|
|
|
|
</#if> |
|
|
|
|
</#list> |
|
|
|
|
</#if> |
|
|
|
|
<#if role_names?has_content> |
|
|
|
|
<p class="info-user__occupazione">${role_names?substring(2)}</p> |
|
|
|
|
</#if> |
|
|
|
|
<#assign userGroupRoleService = serviceLocator.findService('com.liferay.portal.service.UserGroupRoleLocalService') /> |
|
|
|
|
<#assign roles = userGroupRoleService.getUserGroupRoles(user_id) > |
|
|
|
|
<#assign role_names = ""> |
|
|
|
|
<#if roles?has_content> |
|
|
|
|
<#list roles as role> |
|
|
|
|
<#assign roleName = role.getRole().getName()> |
|
|
|
|
<#if !roleName?matches('.*Owner') > |
|
|
|
|
<#assign roleName = roleName?replace('portos_', '')?replace('_',' ')?capitalize> |
|
|
|
|
<#if !role_names?contains(roleName) > |
|
|
|
|
<#assign role_names = role_names+", ${roleName}"> |
|
|
|
|
</#if> |
|
|
|
|
</#if> |
|
|
|
|
</#list> |
|
|
|
|
</#if> |
|
|
|
|
<#if role_names?has_content> |
|
|
|
|
<p class="info-user__occupazione">${role_names?substring(2)}</p> |
|
|
|
|
</#if> |
|
|
|
|
</div> |
|
|
|
|
</div> |
|
|
|
|
</div> |
|
|
|
|
|
|
|
|
|
<div class="header-separator"></div> |
|
|
|
|
</#if> |
|
|
|
|
|
|
|
|
|