From 90441e396923771ddbc8a2bc2a8c18779feb66de Mon Sep 17 00:00:00 2001 From: tworrall Date: Fri, 3 May 2013 16:23:14 -0400 Subject: [PATCH] modified index page to prevent a fourth column that displays outside the standard margins --- .../web/templates/freemarker/body/classGroups.ftl | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/webapp/web/templates/freemarker/body/classGroups.ftl b/webapp/web/templates/freemarker/body/classGroups.ftl index 9d12507d7..ab5307be4 100644 --- a/webapp/web/templates/freemarker/body/classGroups.ftl +++ b/webapp/web/templates/freemarker/body/classGroups.ftl @@ -8,6 +8,9 @@
<#list classGroups as classGroup> + <#assign groupSize = classGroup.classes?size > + <#assign classCount = 0 > + <#assign splitGroup = false> <#-- Only render classgroups that have at least one populated class --> <#if (classGroup.individualCount > 0)>
@@ -17,6 +20,14 @@ <#-- Only render populated classes --> <#if (class.individualCount > 0)>
  • ${class.name} (${class.individualCount})
  • + <#assign classCount = classCount + 1 > + + <#if (classCount > 34) && !splitGroup > + <#assign splitGroup = true > +
    +
    +

    ${classGroup.displayName} (cont'd)

    +
    @@ -29,7 +40,7 @@ ${headScripts.add('')}