Updates to a nice clean Days, Hours, Minute format.

This commit is contained in:
ccostan 2018-01-05 15:42:02 -05:00
parent 76b7606558
commit ed22639327
1 changed files with 15 additions and 1 deletions

View File

@ -24,4 +24,18 @@
{%- endif -%}
{{ ', ' }}
{%- endif -%}
{{ '%02d' % hours }}:{{ '%02d' % minutes }}
{%- if hours > 0 -%}
{%- if hours == 1 -%}
1 hour
{%- else -%}
{{ hours }} hours
{%- endif -%}
{{ ', ' }}
{%- endif -%}
{%- if minutes > 0 -%}
{%- if minutes == 1 -%}
1 minute
{%- else -%}
{{ minutes }} minutes
{%- endif -%}
{%- endif -%}