diff options
author | Jesse Morgan <jesse@jesterpm.net> | 2013-09-01 15:56:37 -0700 |
---|---|---|
committer | Jesse Morgan <jesse@jesterpm.net> | 2013-09-01 15:56:37 -0700 |
commit | 5e3dc2047ed9b0b59989bba9f0d86a28aa25613b (patch) | |
tree | 653f3be99e9187355b592d3893e8cccb1b3f855c /src/templates | |
parent | e2acdba7796aaa2bd66b0577e296bb0c54dd8c95 (diff) |
Adding ErrorPage representation for error messages
Diffstat (limited to 'src/templates')
-rw-r--r-- | src/templates/templates/error.ftl | 17 | ||||
-rw-r--r-- | src/templates/templates/nav.ftl | 2 |
2 files changed, 18 insertions, 1 deletions
diff --git a/src/templates/templates/error.ftl b/src/templates/templates/error.ftl new file mode 100644 index 0000000..2494907 --- /dev/null +++ b/src/templates/templates/error.ftl @@ -0,0 +1,17 @@ +<#include "/macros/common.ftl"> +<#include "/macros/common-page.ftl"> + +<@commonpage> + <@noticebox> + </@noticebox> + + <@content> + <h1>An Error has Occurred</h1> + + <p>An error has occurred. If you continue to see this message, please contact us.</p> + <p>Error: ${errorMessage}</p> + </@content> +</@commonpage> + + + diff --git a/src/templates/templates/nav.ftl b/src/templates/templates/nav.ftl index cef283e..54074d5 100644 --- a/src/templates/templates/nav.ftl +++ b/src/templates/templates/nav.ftl @@ -1,6 +1,6 @@ <#macro navLink href> <li><a - <#if currentPage == href> + <#if currentPage!"" == href> class="current" </#if> href="${href}"><#nested></a></li> |