From c3fa7734f10ab8b0edb5c824d02eb9bc1f34fd70 Mon Sep 17 00:00:00 2001 From: nac26 Date: Tue, 18 Jan 2011 11:54:30 +0000 Subject: [PATCH] NIHVIVO-592 Non-JavaScript browse for home page is just about there. Needs some styling tweaks from Manolo --- .../body/partials/browse-classgroups.ftl | 63 +++++++++++++++++++ 1 file changed, 63 insertions(+) create mode 100644 webapp/web/templates/freemarker/body/partials/browse-classgroups.ftl diff --git a/webapp/web/templates/freemarker/body/partials/browse-classgroups.ftl b/webapp/web/templates/freemarker/body/partials/browse-classgroups.ftl new file mode 100644 index 000000000..d75ee72ef --- /dev/null +++ b/webapp/web/templates/freemarker/body/partials/browse-classgroups.ftl @@ -0,0 +1,63 @@ +<#-- $This file is distributed under the terms of the license in /doc/license.txt$ --> + +<#-- Browse classgroups on the home page. Could potentially become a widget --> + +<@allClassGroups /> + +<#macro allClassGroups> +
+

Browse

+ + + + <#-- If requesting the home page without any additional URL parameters, select the first populated class group--> + <#assign defaultSelectedClassGroup = firstPopulatedClassGroup /> + + +
+ + +<#macro classesInClassgroup classes=classes classGroup=classGroup> + <#list classes as class> + <#if (class.individualCount > 0)> +
  • ${class.name} (${class.individualCount})
  • + + + \ No newline at end of file