From 3102d8bce3426d9cf41aeaf201c360d342677770 Mon Sep 17 00:00:00 2001 From: Jesse Morgan Date: Sat, 9 Apr 2016 14:22:20 -0700 Subject: Switching from Ivy+Ant to Maven. --- .../resources/templates/macros/common-page.ftl | 29 ++++++++++++++++++++++ src/main/resources/templates/macros/common.ftl | 4 +++ src/main/resources/templates/macros/content.ftl | 7 ++++++ src/main/resources/templates/macros/hms.ftl | 25 +++++++++++++++++++ src/main/resources/templates/macros/noticebox.ftl | 10 ++++++++ 5 files changed, 75 insertions(+) create mode 100644 src/main/resources/templates/macros/common-page.ftl create mode 100644 src/main/resources/templates/macros/common.ftl create mode 100644 src/main/resources/templates/macros/content.ftl create mode 100644 src/main/resources/templates/macros/hms.ftl create mode 100644 src/main/resources/templates/macros/noticebox.ftl (limited to 'src/main/resources/templates/macros') 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> + + + + Grow Process + + + + + + + + +
+ <#include "/templates/banner.ftl"> + <#include "/templates/header.ftl"> + + <#nested> + +
+
+ + <#include "/templates/footer.ftl"> + + + + + 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=""> +
+
+ <#nested> +
+
+ 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 (m < 10)> + <#assign m = "0${m}" /> + + + <#if (s < 10)> + <#assign s = "0${s}" /> + + + <#if (seconds >= 3600)> + ${h}:${m}:${s} + <#elseif (seconds >= 60)> + ${m}:${s} + <#else> + ${s} seconds + + 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=""> +
+
+

+ + <#nested> +

+
+
+ -- cgit v1.2.3