<#-- - - - - Copyright (C) 1999-2006 Jive Software. All rights reserved. - This software is the proprietary information of Jive Software. Use is subject to license terms. --> <#assign isSystemAdmin = false> <#assign isCommunityAdmin = false> <#assign isGroupAdmin = false> <#assign isUserAdmin = false> <#assign isHostedAdmin = false> <#assign tabindex = 1 > <#assign pageUser = jiveContext.getUserManager().getUser(authToken.getUserID())> <#assign includeCalendar=statics["com.jivesoftware.community.action.util.ParamUtils"].getBooleanParameter(request, "includeCalendar", false)> <#if !(includeCalendar)> <#if (page.getProperty("meta.includeCalendar")?exists) > <#assign includeCalendar= page.getProperty("meta.includeCalendar").equals("true")> <#assign s=response.setContentType("text/html; charset="+ statics["com.jivesoftware.community.JiveGlobals"].getCharacterEncoding())> <#-- Find the user Permissions --> <#assign isSystemAdmin = jiveContext.isAuthorized(Permissions.SYSTEM_ADMIN)> <#assign isCommunityAdmin = isSystemAdmin || jiveContext.isAuthorized(Permissions.COMMUNITY_ADMIN) || statics["com.jivesoftware.community.action.admin.util.AdminPermMethods"].hasCommunityWithPermission(jiveContext, Permissions.COMMUNITY_ADMIN)> <#assign isGroupAdmin = isSystemAdmin || jiveContext.isAuthorized(Permissions.GROUP_ADMIN) || statics["com.jivesoftware.community.action.admin.util.AdminPermMethods"].hasGroupWithPermission(jiveContext, Permissions.GROUP_ADMIN)> <#assign isUserAdmin = isSystemAdmin || jiveContext.isAuthorized(Permissions.USER_ADMIN)> <#assign isHostedAdmin = jiveContext.isAuthorized(Permissions.HOSTED_ADMIN)> <#assign role= ""> <#if (isSystemAdmin && !isHostedAdmin) > <#assign role = role + "systemAdmin,"> <#if (isCommunityAdmin) > <#assign role = role +"communityAdmin,"> <#if (isGroupAdmin) > <#assign role = role +"groupAdmin,"> <#if (isUserAdmin) > <#assign role = role +"userAdmin,"> <#if (isHostedAdmin) > <#assign role = role +"hostedAdmin,"> <#assign pageID=""> <#attempt> <#assign pageID = page.getProperty("page.pageID")> <#recover> <#assign pageID = "dashboard"> <#assign pagetitle=""> <#attempt> <#assign pagetitle = page.getProperty("page.pagetitle")> <#recover> <#if (Request["jivepageinfo"]?exists)> <#assign pagetitle = Request["jivepageinfo"].getTitle() > <#assign pagehelp = ""> <#attempt> <#if (page.getProperty("page.pagehelp")?exists) > <#assign pagehelp = page.getProperty("page.pagehelp")> <#recover> <#assign extraParams = ""> <#if ( page.getProperty("page.extraParams")?exists)> <#assign extraParams = page.getProperty("page.extraParams")> <#assign component=UIComponents.getUIComponent("admin-console")> <#assign currentItem=""/> <#if (component.getItemByItemID(pageID)?exists)> <#assign currentItem = component.getItemByItemID(pageID)> <#else> <#if (Request["jivepageinfo"]?exists) > <#assign currentItem = component.getItemByItemID(Request["jivepageinfo"].getPageID())> <#else> <#assign currentItem = component.getItemByItemID("system-info")> <#assign currentTab = component.getTabByItemID(currentItem.getId())> <#attempt> <#if (component.getSectionByItemID(currentItem.getId())?exists)> <#assign currentSection = component.getSectionByItemID(currentItem.getId())> <#else> <#assign currentSection = currentTab.getSections().get(0)> <#recover> <#assign currentSection = currentTab.getSections().get(0)> <#assign communityID = statics["com.jivesoftware.community.action.util.ParamUtils"].getLongParameter(request, "communityID", -1)> <#assign isCommunity = (communityID != -1 || currentTab.getId().equals("communities"))> <#assign community = jiveContext.getCommunityManager().getRootCommunity()> <#if (communityID?int == -1)> <#if (session.getAttribute("jive.admin.communityID")?exists) > <#assign communityID = session.getAttribute("jive.admin.communityID")> <#attempt> <#if (communityID?int != -1) > <#assign community = jiveContext.getCommunityManager().getCommunity(communityID)> <#recover> <#attempt> <#assign s = session.setAttribute("jive.admin.communityID", statics["java.lang.Long"].valueOf(""+community.getID()?c))/> <#recover> <#assign communityID=community.getID()> <#assign authorizedToViewBody = UIComponents.hasPermissions(pageID, role)> <#assign hideCommunityPicker=false> <#if page.getProperty("page.hideCommunityPicker")?exists> <#assign hideCommunityPicker = statics["java.lang.Boolean"].valueOf(page.getProperty("page.hideCommunityPicker")).booleanValue()> <#if (isCommunity)> <#if (communityID?int == -1)> <#if (session.getAttribute("jive.admin.communityID")?exists) > <#assign communityID = (session.getAttribute("jive.admin.communityID"))> <#else> <#assign isWhiteLabel=JiveGlobals.isWhiteLabel()> <#if (isWhiteLabel)> Admin Console <#else> Clearspace Admin Console </#if>${pagetitle} " /> " /> <#assign sap=JspTaglibs["/WEB-INF/sap.tld"]> <@sap.adminentrypoint /> <#if (!includeCalendar)> <@jive.importJavascript scripts=['prototype','jive', 'scriptaculous','effects','controls','/scripts/global.js','utils','hilite'] /> " /> <#if (includeCalendar) > <@jive.importJavascript scripts=['prototype','jive','scriptaculous','effects','controls','/scripts/global.js','utils','hilite','/scripts/jscalendar/calendar_stripped.js','/scripts/jscalendar/calendar-en.js'] /> ${page.head} " /> " />
<#assign header = JiveGlobals.getJiveBooleanProperty("skin.admin.header.enabled",true)> <#if (header) >
<#assign license=jiveContext.getLicenseManager().getLicense()> ${license.name} ${license.getVersion().getVersionString()}
${pageUser.username} -
<@ww.text name="admin.decorator.viewsite" />
    <#assign count = 1 > <#list component.tabs as tab> <#assign tabElement = component.getElementByID(tab.getId())> <#-- check rtc --> <#assign displayTab = true> <#if ( tab.getId().equals("rtc") && JiveGlobals.getJiveBooleanProperty("jive.admin.rtc.disabled", false))> <#assign displayTab = false> <#if displayTab && component.isAllowedRole(role, tabElement)> <#assign count=count+1>
<#if (!currentTab.getId().equalsIgnoreCase("reports"))>
    <#list currentTab.getSections() as section> <#if (component.isAllowedRole(role, component.getElementByID(section.getId()))) > <#if !isSystemAdmin && (section.getId().equalsIgnoreCase("community-settings") || section.getId().equalsIgnoreCase("community-permissions"))> <#if community.isAuthorized(Permissions.COMMUNITY_ADMIN)> <@sectionTab section=section/> <#else> <@sectionTab section=section/>
<#else>
<#assign hasSection = currentSection?exists> <#assign hasPageHelp = (pagehelp?exists && pagehelp != (""))> <#if (hasSection || hasPageHelp)>
<#if (hasSection && !currentSection.getId().equalsIgnoreCase("reporting-reports"))> <#if (currentSection.getItems().size() > 0) >
    <#list currentSection.items as item> <#if (component.isAllowedRole(role, component.getElementByID(item.getId())))> <@itemTab item=item/>
<#elseif (currentSection.getId().equalsIgnoreCase("reporting-reports")) > <#include "/template/decorator/admin/reports_sidebar.ftl" />

${pagetitle} <#if (isCommunity && !hideCommunityPicker)>
<@ww.text name="adn.dec.spcpicker.label" /><@ww.text name="global.colon" /> ${StringUtils.escapeHTMLTags(community.getName())} (<@ww.text name="adn.dec.spcpicker.changespc" />)

<#if (authorizedToViewBody)> ${page.body} <#else> You do not have permission to view this page.
<#macro sectionTab section> <#assign p2 = "?"> <#if (section.getUrl().indexOf("?") > -1)> <#assign p2 = "&">
  • <#assign descr=section.getDescription()> <@ww.text name="${section.name}"/>
  • <#macro itemTab item> <#assign p1 = "?"> <#if (item.getUrl().indexOf("?") > -1)> <#assign p1 = "&">
  • " > <@ww.text name="${item.name}" />