<%! from calefaction.format import ( format_isk_compact, format_utctime_compact, format_security, get_security_class) %> <%def name="_killboard_kill(kill)"> <% victim = kill["victim"] system = g.eve.universe.system(kill["system"]) killed = g.eve.universe.killable(victim["ship_id"]) %> ${format_utctime_compact(kill["date"]) | h}
${format_isk_compact(kill["value"]) | h} ${system.name | h} ${format_security(system.security)}
${system.region.name | h} Kill ${kill['id']}: ${killed.name | h} ${victim['char_name'] | h} ${victim['corp_name'] | h} % if victim["alliance_id"]: ${victim['alliance_name'] | h} % endif % if victim["faction_id"]: ${victim['faction_name'] | h} % endif % if not victim["alliance_id"] and not victim["faction_id"]: % endif <%def name="_killboard_recent(summary)">
Most recent kills:
% for kill in summary: ${_killboard_kill(kill)} % endfor
<%def name="_collection_items(summary)">
XXX:
${summary | h}
<%def name="render_summary(renderer, summary)"><% if renderer == "killboard_recent": return _killboard_recent(summary) if renderer == "collection_items": return _collection_items(summary) raise RuntimeError("Unknown renderer: %s" % renderer) %>