A corporation manager and dashboard for EVE Online
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 

45 lines
1.9 KiB

  1. <%inherit file="../_default.mako"/>
  2. <%block name="title">
  3. ${self.maketitle(campaign["title"], "Campaigns")}
  4. </%block>
  5. <h2>
  6. <span class="understate">Campaign:</span>
  7. <span${"" if enabled else ' class="disabled"'}>${campaign["title"] | h}</span>
  8. </h2>
  9. <% mod = g.config.modules.campaigns %>
  10. <div id="operations">
  11. % for section in campaign["layout"]:
  12. <% klass = "loose" if len(section) < 3 else "tight" %>
  13. <section class="${klass}">
  14. % for opname in section:
  15. <%
  16. operation = campaign["operations"][opname]
  17. primary, secondary = mod.get_overview(name, opname)
  18. summary = mod.get_summary(name, opname, limit=5)
  19. klass = "big" if primary < 1000 else "medium" if primary < 1000000 else "small"
  20. %>
  21. <div class="operation">
  22. <h3>
  23. <a href="${url_for('campaigns.operation', cname=name, opname=opname)}">${operation["title"] | h}</a>
  24. </h3>
  25. <div class="overview">
  26. <div class="primary ${klass}">${"{:,}".format(primary)}</div>
  27. <div class="unit">${mod.get_unit(operation, primary)}</div>
  28. % if secondary is not None:
  29. <div class="secondary">${"{:,}".format(secondary)}</div>
  30. <div class="unit">${mod.get_unit(operation, secondary, primary=False)}</div>
  31. % endif
  32. </div>
  33. % if summary:
  34. <ul class="summary">
  35. % for item in summary:
  36. <li>${item}</li>
  37. % endfor
  38. </ul>
  39. % endif
  40. </div>
  41. % endfor
  42. </section>
  43. % endfor
  44. </div>