Implemented unique colorbars.
[zzz-spline-users.git] / spline / plugins / users / templates / users / lib.mako
diff --git a/spline/plugins/users/templates/users/lib.mako b/spline/plugins/users/templates/users/lib.mako
new file mode 100644 (file)
index 0000000..34c3194
--- /dev/null
@@ -0,0 +1,7 @@
+<%def name="color_bar(user)">\
+<span class="user-color-bar">
+    % for width, color in user.unique_colors:
+    <span class="user-color-bar-chunk" style="width: ${width * 100.0}%; background-color: ${color};"></span>
+    % endfor
+</span>\
+</%def>