Breadcrumbs template. Copied some templates into vivo-basic theme.

This commit is contained in:
rjy7 2010-05-14 20:50:33 +00:00
parent 8d538b5fc6
commit aab3f23f3a
3 changed files with 11 additions and 4 deletions

View file

@ -28,8 +28,8 @@ import edu.cornell.mannlib.vitro.webapp.beans.ApplicationBean;
import edu.cornell.mannlib.vitro.webapp.beans.Portal; import edu.cornell.mannlib.vitro.webapp.beans.Portal;
import edu.cornell.mannlib.vitro.webapp.utils.StringUtils; import edu.cornell.mannlib.vitro.webapp.utils.StringUtils;
import edu.cornell.mannlib.vitro.webapp.view.menu.TabMenu; import edu.cornell.mannlib.vitro.webapp.view.menu.TabMenu;
import edu.cornell.mannlib.vitro.webapp.web.BreadCrumbsUtil;
import edu.cornell.mannlib.vitro.webapp.web.PortalWebUtil; import edu.cornell.mannlib.vitro.webapp.web.PortalWebUtil;
import freemarker.cache.ClassTemplateLoader; import freemarker.cache.ClassTemplateLoader;
import freemarker.cache.FileTemplateLoader; import freemarker.cache.FileTemplateLoader;
import freemarker.cache.MultiTemplateLoader; import freemarker.cache.MultiTemplateLoader;
@ -219,6 +219,7 @@ public class FreeMarkerHttpServlet extends VitroHttpServlet {
root.put("siteName", portal.getAppName()); root.put("siteName", portal.getAppName());
root.put("tagline", portal.getShortHand()); root.put("tagline", portal.getShortHand());
root.put("breadcrumbs", BreadCrumbsUtil.getBreadCrumbsDiv(request));
setUrls(portalId, themeDir); setUrls(portalId, themeDir);
setLoginInfo(); setLoginInfo();

View file

@ -0,0 +1,5 @@
<#-- $This file is distributed under the terms of the license in /doc/license.txt$ -->
<#-- By default, not used. Uncomment if desired, and unhide in CSS.
<div id="breadcrumbs" class="small">${breadcrumbs}</div>
-->

View file

@ -10,12 +10,13 @@
<#include "/components/identity.ftl"> <#include "/components/identity.ftl">
<#-- Note to UI team: do not change this div without also making the change in menu.jsp --> <#-- Note to UI team: do not change this div without also making the corresponding change in menu.jsp -->
<div id="navAndSearch" class="block"> <div id="navAndSearch" class="block">
<#include "/components/menu.ftl"> <#include "/components/menu.ftl">
<#include "/components/search.ftl"> <#include "/components/search.ftl">
</div> <!-- navAndSearch --> </div> <!-- navAndSearch -->
<#include "/components/breadcrumbs.ftl">
</div> <!-- header --> </div> <!-- header -->
<hr class="hidden" /> <hr class="hidden" />