A corporation manager and dashboard for EVE Online
Vous ne pouvez pas sélectionner plus de 25 sujets Les noms de sujets doivent commencer par une lettre ou un nombre, peuvent contenir des tirets ('-') et peuvent comporter jusqu'à 35 caractères.
 
 
 
 
 

49 lignes
2.1 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">
  27. <span class="num ${klass}">${"{:,}".format(primary)}</span>
  28. <div class="unit">${mod.get_unit(operation, primary)}</div>
  29. </div>
  30. % if secondary is not None:
  31. <div class="secondary">
  32. <span class="num">${"{:,.2f}".format(secondary)}</span>
  33. <span class="unit">${mod.get_unit(operation, secondary, primary=False)}</span>
  34. </div>
  35. % endif
  36. </div>
  37. % if summary:
  38. <ul class="summary">
  39. % for item in summary:
  40. <li>${item}</li>
  41. % endfor
  42. </ul>
  43. % endif
  44. </div>
  45. % endfor
  46. </section>
  47. % endfor
  48. </div>