%!
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}
|
|
% if victim["alliance_id"]:
% endif
|
% if victim["faction_id"]:
% endif
|
% if not victim["alliance_id"] and not victim["faction_id"]:
|
% endif
%def>
<%def name="_killboard_recent(summary)">
Most recent kills:
% for kill in summary:
${_killboard_kill(kill)}
% endfor
%def>
<%def name="_collection_items(summary)">
XXX:
${summary | h}
%def>
<%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)
%>%def>