displaying galleries on your page works
[zzz-floof.git] / floof / templates / macros.mako
diff --git a/floof/templates/macros.mako b/floof/templates/macros.mako
new file mode 100644 (file)
index 0000000..5633e5b
--- /dev/null
@@ -0,0 +1,11 @@
+<%def name="thumbs(art)">
+    <ul class="artwork-grid">
+        % for item in art:
+            <li>
+                <a href="${h.url("art", id=item.id)}">
+                    <img width="180" src="${item.get_path()}">
+                </a>
+            </li>
+        % endfor
+    </ul>
+</%def>
\ No newline at end of file