diff options
author | Jesse Morgan <jesse@jesterpm.net> | 2016-04-09 14:22:20 -0700 |
---|---|---|
committer | Jesse Morgan <jesse@jesterpm.net> | 2016-04-09 15:48:01 -0700 |
commit | 3102d8bce3426d9cf41aeaf201c360d342677770 (patch) | |
tree | 38c4f1e8828f9af9c4b77a173bee0d312b321698 /src/main/resources/templates/macros | |
parent | bbf907e51dfcf157bdee24dead1d531122aa25db (diff) |
Switching from Ivy+Ant to Maven.
Diffstat (limited to 'src/main/resources/templates/macros')
-rw-r--r-- | src/main/resources/templates/macros/common-page.ftl | 29 | ||||
-rw-r--r-- | src/main/resources/templates/macros/common.ftl | 4 | ||||
-rw-r--r-- | src/main/resources/templates/macros/content.ftl | 7 | ||||
-rw-r--r-- | src/main/resources/templates/macros/hms.ftl | 25 | ||||
-rw-r--r-- | src/main/resources/templates/macros/noticebox.ftl | 10 |
5 files changed, 75 insertions, 0 deletions
diff --git a/src/main/resources/templates/macros/common-page.ftl b/src/main/resources/templates/macros/common-page.ftl new file mode 100644 index 0000000..1780036 --- /dev/null +++ b/src/main/resources/templates/macros/common-page.ftl @@ -0,0 +1,29 @@ +<#macro commonpage> + <#compress> + <!doctype html> + <html> + <head> + <title>Grow Process</title> + + <link href="http://fonts.googleapis.com/css?family=Arvo:400,700" rel="stylesheet"> + <link rel="stylesheet" href="${staticRoot}/style.css" /> + <script src="${staticRoot}/scripts/jquery.min.js"></script> + <script src="${staticRoot}/scripts/jquery-ui.js"></script> + <script src="${staticRoot}/scripts/growth.js"></script> + </head> + <body> + <div id="notfooter"> + <#include "/templates/banner.ftl"> + <#include "/templates/header.ftl"> + + <#nested> + + <div id="push"></div> + </div> + + <#include "/templates/footer.ftl"> + + </body> + </html> + </#compress> +</#macro> diff --git a/src/main/resources/templates/macros/common.ftl b/src/main/resources/templates/macros/common.ftl new file mode 100644 index 0000000..d388a4e --- /dev/null +++ b/src/main/resources/templates/macros/common.ftl @@ -0,0 +1,4 @@ +<#include "content.ftl"> +<#include "noticebox.ftl"> +<#assign dynamicRoot = ""> +<#assign staticRoot = ""> diff --git a/src/main/resources/templates/macros/content.ftl b/src/main/resources/templates/macros/content.ftl new file mode 100644 index 0000000..eaf0b17 --- /dev/null +++ b/src/main/resources/templates/macros/content.ftl @@ -0,0 +1,7 @@ +<#macro content class=""> + <div id="content"> + <article class="${class}"> + <#nested> + </article> + </div> +</#macro> diff --git a/src/main/resources/templates/macros/hms.ftl b/src/main/resources/templates/macros/hms.ftl new file mode 100644 index 0000000..339b8a9 --- /dev/null +++ b/src/main/resources/templates/macros/hms.ftl @@ -0,0 +1,25 @@ +<#macro hms seconds> + <#assign h = (seconds / 3600)?int /> + <#assign m = (seconds % 3600 / 60)?int /> + <#assign s = (seconds % 3600 % 60)?int /> + + <#if (h < 10)> + <#assign h = "0${h}" /> + </#if> + + <#if (m < 10)> + <#assign m = "0${m}" /> + </#if> + + <#if (s < 10)> + <#assign s = "0${s}" /> + </#if> + + <#if (seconds >= 3600)> + ${h}:${m}:${s} + <#elseif (seconds >= 60)> + ${m}:${s} + <#else> + ${s} seconds + </#if> +</#macro> diff --git a/src/main/resources/templates/macros/noticebox.ftl b/src/main/resources/templates/macros/noticebox.ftl new file mode 100644 index 0000000..34ef994 --- /dev/null +++ b/src/main/resources/templates/macros/noticebox.ftl @@ -0,0 +1,10 @@ +<#macro noticebox class=""> + <div id="middlebar"> + <div id="noticebox" class="${class}"> + <p> + <img class="icon" src="${staticRoot}/images/noticeicon.png"> + <span><#nested></span> + </p> + </div> + </div> +</#macro> |