NIHVIVO-1234 Initial version of HomePageController and templates

This commit is contained in:
rjy7 2010-10-22 21:39:17 +00:00
parent edfe3655fe
commit 33981afe1d
3 changed files with 69 additions and 13 deletions

View file

@ -0,0 +1,59 @@
<#-- $This file is distributed under the terms of the license in /doc/license.txt$ -->
<#include "doctype.html">
<#include "head.ftl">
<body>
<div id="wrap" class="container">
<div id="header">
<#include "identity.ftl">
<#-- Note to UI team: do not change this div without also making the corresponding change in menu.jsp -->
<div id="navAndSearch" class="block">
<#include "menu.ftl">
<#include "search.ftl">
</div> <!-- navAndSearch -->
<#include "breadcrumbs.ftl">
</div> <!-- header -->
<hr class="hidden" />
<div id="contentwrap">
<div id="content">
<#-- UI team: the home page controller currently does not produce a ${body} string,
anticipating that you would put all the markup directly in page-home.ftl. If you want
it to work the way other pages do, with a separate template to produce the body,
<#-- ${body!} -->
<p>This is the home page of the VIVO vivo-basic theme.</p>
</div> <!-- content -->
</div> <!-- contentwrap -->
<#include "footer.ftl">
</div> <!-- wrap -->
<#include "scripts.ftl">
</body>
</html>
<#--
Three ways to add a stylesheet:
A. In theme directory:
${stylesheets.addFromTheme("/css/sample.css")}
${stylesheets.add(themeDir + "/css/sample.css")}
B. Any location
${stylesheets.add("/edit/forms/css/sample.css)"}
To add a script:
A. In theme directory:
${scripts.addFromTheme("/css/sample.js")}
B. Any location
${scripts("/edit/forms/js/sample.js)"}
-->

View file

@ -69,7 +69,7 @@ ${headScripts.tags}
</nav>
<div id="wrapper-content">
${body}
${body!}
</div>
<footer>