<%inherit file="../_default.mako"/> <%block name="title"> ${self.maketitle(campaign["title"], "Campaigns")}

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] primary, secondary = mod.get_overview(name, opname) summary = mod.get_summary(name, opname, limit=5) klass = "big" if primary < 1000 else "medium" if primary < 1000000 else "small" %>

${operation["title"] | h}

${"{:,}".format(primary)}
${mod.get_unit(operation, primary)}
% if secondary is not None:
${"{:,.2f}".format(secondary)} ${mod.get_unit(operation, secondary, primary=False)}
% endif
% if summary:
    % for item in summary:
  • ${item}
  • % endfor
% endif
% endfor
% endfor