From a6cde562a127f4aa208ee030615b71842fb752a2 Mon Sep 17 00:00:00 2001
From: Andreas <andreasv@fsmpi.rwth-aachen.de>
Date: Sun, 11 Sep 2016 23:57:07 +0200
Subject: [PATCH] moved vtttime to macros.html

---
 templates/chapters.srt | 2 +-
 templates/macros.html  | 2 ++
 2 files changed, 3 insertions(+), 1 deletion(-)

diff --git a/templates/chapters.srt b/templates/chapters.srt
index bfb4632..0ad04a0 100644
--- a/templates/chapters.srt
+++ b/templates/chapters.srt
@@ -1,4 +1,4 @@
-{% macro vtttime(time) %}{{ '%02d:%02d:%02d.000'|format( time//3600, (time//60)%60, time%60) }}{% endmacro %}
+{% from 'macros.html' import vtttime %}
 WEBVTT
 
 
diff --git a/templates/macros.html b/templates/macros.html
index 35e5291..23b57e0 100644
--- a/templates/macros.html
+++ b/templates/macros.html
@@ -187,3 +187,5 @@ $('#embedcodebtn').popover(
 		</button>
 	{% endif %}
 {% endmacro %}
+
+{% macro vtttime(time) %}{{ '%02d:%02d:%02d.000'|format( time//3600, (time//60)%60, time%60) }}{% endmacro %}
-- 
GitLab