chempound / chempound-webapp / src / main / resources / net / chempound / templates / include / layout.ftl

<#-- @ftlvariable name="@" type="net.chempound.webapp.GlobalData" -->
<#-- @ftlvariable name="" type="net.chempound.webapp.output.Page" -->
<#macro basic
    title="Chempound Repository"
>
<!DOCTYPE html>
<html>
<head>
    <title>${title}</title>
<#list STYLESHEETS as stylesheet>
    <link rel="stylesheet" href="${stylesheet}"/>
</#list>
<#if stylesheets??>
<#list stylesheets as stylesheet>
    <link rel="stylesheet" href="${stylesheet}"/>
</#list>
</#if>
<#if headers??>
<#list headers as header>
<#assign headerTemplate = header?interpret>
<@headerTemplate />
</#list>
</#if>
</head>

<body>

<header>
    <div class="content">
        <h1>${@.data.title}</h1>
    </div>
</header>

<nav>
    <div class="content">
        <ul>
            <li><a href="${URI_BASE}/" class="first">Home</a></li>
            <li><a href="${URI_BASE}/content/">Browse</a></li>
            <li><a href="${URI_BASE}/search/">Search</a></li>
            <li><a href="${URI_BASE}/sparql/">SPARQL</a></li>
            <li><a href="${URI_BASE}/feeds/">Feeds</a></li>
        </ul>
<#--
        <ul style="float: right">
            <li><a href="${URI_BASE}/help/" class="first">Help</a></li>
        </ul>
-->
        <div class="clear"></div>
    </div>
</nav>

<article>
    <div class="content">

<#escape x as x?html>
<#nested>
</#escape>

<!-- content ends -->

    </div>
</article>

<footer>
    <p></p>
</footer>

<#if @.data.googleAnalyticsId??>
<!-- change the UA-XXXXX-X to be your site's ID -->
<script>
var _gaq = [['_setAccount', '${@.data.googleAnalyticsId}'], ['_trackPageview']];
(function(d, t) {
    var g = d.createElement(t),
        s = d.getElementsByTagName(t)[0];
    g.async = true;
    g.src = ('https:' == location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
    s.parentNode.insertBefore(g, s);
})(document, 'script');
</script>
</#if>

</body>
</html>
</#macro>
Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for ProjectModifiedEvent.java.
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.