]> git.siccegge.de Git - frida/web.git/blobdiff - macros.py
Add fancy lightbox screenshots
[frida/web.git] / macros.py
diff --git a/macros.py b/macros.py
new file mode 100644 (file)
index 0000000..d8a758a
--- /dev/null
+++ b/macros.py
@@ -0,0 +1,8 @@
+#!/usr/bin/python
+
+def screenshot(name, group):
+    data = dict()
+    data['group'] = group
+    data['imageurl'] = "img/%s.png" % name
+    data['thumburl'] = "img/%s.thumb.png" % name
+    return "<a data-lightbox='%(group)s' href='%(imageurl)s'><img src='%(thumburl)s' /></a>" % data