diff options
author | Jesse Morgan <jesse@jesterpm.net> | 2013-09-10 00:20:37 -0700 |
---|---|---|
committer | Jesse Morgan <jesse@jesterpm.net> | 2013-09-10 00:20:37 -0700 |
commit | d76a0b89ebe407fc2693abcda498220c348189ee (patch) | |
tree | c51d60c068196af6000ae0e46caee00916859de1 /src/templates/macros/hms.ftl | |
parent | 64c13e3235e32344a0c7c5febbefe802e9102ace (diff) |
Various UX Fixes.
* Take Assessment link now goes to /account
* Fixed alignment on slider question labels
* Prefixed numbers less than 10 with a zero in the HMS macro
Diffstat (limited to 'src/templates/macros/hms.ftl')
-rw-r--r-- | src/templates/macros/hms.ftl | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/src/templates/macros/hms.ftl b/src/templates/macros/hms.ftl index f9662af..339b8a9 100644 --- a/src/templates/macros/hms.ftl +++ b/src/templates/macros/hms.ftl @@ -3,6 +3,18 @@ <#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)> |