<#-- $This file is distributed under the terms of the license in /doc/license.txt$ --> <#-- Browse class groups on the home page. Could potentially become a widget --> ${stylesheets.add("/css/browseClassGroups.css")} <#macro allClassGroups classGroups> <#-- Loop through classGroups first so we can account for situations when all class groups are empty --> <#assign selected = 'class="selected" ' /> <#assign classGroupList> <#list classGroups as group> <#-- Only display populated class groups --> <#if (group.individualCount > 0)> <#-- Catch the first populated class group. Will be used later as the default selected class group --> <#if !firstPopulatedClassGroup??> <#assign firstPopulatedClassGroup = group /> <#-- Determine the active (selected) group --> <#assign activeGroup = "" /> <#if !classGroup??> <#if group_index == 0> <#assign activeGroup = selected /> <#elseif classGroup.uri == group.uri> <#assign activeGroup = selected />
  • ${group.publicName?capitalize} (${group.individualCount})
  • <#-- Display the class group browse only if we have at least one populated class group --> <#if firstPopulatedClassGroup??>

    Browse by

    <#-- If requesting the home page without any additional URL parameters, select the first populated class group--> <#assign defaultSelectedClassGroup = firstPopulatedClassGroup />
    <#-- For v1.3: The controller should pass in the dataservice url. --> ${scripts.add("/js/browseClassGroups.js")} <#else> <#-- Would be nice to update classgroups-checkForData.ftl with macro so it could be used here as well --> <#-- <#include "classgroups-checkForData.ftl"> -->

    There is currently no content in the system

    <#if user.loggedIn> <#if user.hasSiteAdminAccess>

    You can add content and manage this site from the Site Administration page.

    <#else>

    Please log in to manage content.

    <#macro classesInClassgroup classes=classes classGroup=classGroup> <#list classes as class> <#if (class.individualCount > 0)>
  • ${class.name}
  • <#macro visualGraph classes=classes classGroup=classGroup>
    <#-- Will be populated dynamically via AJAX request -->
    ${scripts.add("/js/raphael/raphael.js", "/js/raphael/g.raphael.js", "/js/raphael/g.bar.js")}