%inherit file="../_default.mako"/>
<%block name="title">
${self.maketitle(campaign["title"], "Campaigns")}
%block>
Campaign:
${campaign["title"] | h}
<% mod = g.config.modules.campaigns %>
% for section in campaign["layout"]:
<% klass = "loose" if len(section) < 3 else "tight" %>
% for opname in section:
<%
operation = campaign["operations"][opname]
num = mod.get_count(name, opname)
summary = mod.get_summary(name, opname, limit=5)
klass = "big" if num < 1000 else "medium" if num < 1000000 else "small"
%>
${"{:,}".format(num)}
${mod.get_unit(operation, num)}
% if summary:
% for item in summary:
- ${item}
% endfor
% endif
% endfor
% endfor