A corporation manager and dashboard for EVE Online
選択できるのは25トピックまでです。 トピックは、先頭が英数字で、英数字とダッシュ('-')を使用した35文字以内のものにしてください。
 
 
 
 
 

85 行
3.9 KiB

  1. <!DOCTYPE html>
  2. <html lang="en">
  3. <head>
  4. <meta charset="utf-8">
  5. <title>
  6. <%def name="maketitle(*parts)">
  7. <%
  8. if request.url_rule and request.url_rule.endpoint == "index":
  9. parts = ()
  10. %>
  11. ${" | ".join(parts + (g.config.get("corp.name"),)) | h}
  12. </%def>
  13. <%block name="title">
  14. ${maketitle()}
  15. </%block>
  16. </title>
  17. <meta name="viewport" content="width=device-width, initial-scale=1">
  18. <link rel="canonical" href="${g.config.scheme}://${g.config.get('site.canonical')}${request.script_root}${request.path}">
  19. <link rel="stylesheet" type="text/css" href="${url_for('staticv', filename='main.css')}"/>
  20. <% style = g.auth.get_character_prop("style") or g.config.get("style.default") %>
  21. % if style:
  22. <% stylesheet = "styles/{}.css".format(style) %>
  23. <link id="user-style" rel="stylesheet" type="text/css" href="${url_for('staticv', filename=stylesheet)}"/>
  24. % endif
  25. % for size in g.eve.image.corp_widths:
  26. <link rel="icon" type="image/png" sizes="${size}x${size}" href="${g.eve.image.corp(g.config.get('corp.id'), size)}"/>
  27. % endfor
  28. <script src="https://code.jquery.com/jquery-3.1.1.min.js" integrity="sha256-hVVnYaiADRTO2PzUGmuLJr8BLUSjGIZsDYGmIJLv2b8=" crossorigin="anonymous"></script>
  29. <script src="${url_for('staticv', filename='main.js')}"></script>
  30. </head>
  31. <body>
  32. <%block name="header">
  33. <header class="styled-border">
  34. <div>
  35. <div>
  36. <div class="left">
  37. <%block name="lefthead">
  38. <a id="corp-masthead" title="Home" href="${url_for('index')}">
  39. <img alt="Logo" src="${g.eve.image.corp(g.config.get('corp.id'), 256)}"/>
  40. <h1>${g.config.get("corp.name") | h}</h1>
  41. </a>
  42. </%block>
  43. </div>
  44. <div class="right">
  45. <%block name="righthead">
  46. <img class="spacer" alt="" src="data:image/gif;base64,R0lGODlhAQABAAD/ACwAAAAAAQABAAACADs="/>
  47. </%block>
  48. </div>
  49. </div>
  50. </div>
  51. </header>
  52. </%block>
  53. <%block name="container">
  54. <div id="container">
  55. <div>
  56. <main class="styled-border">
  57. <%block name="flashes">
  58. <% messages = get_flashed_messages(with_categories=True) %>
  59. % if messages:
  60. <div id="flashes">
  61. % for category, message in messages:
  62. <div class="${category | h}">${message | h}</div>
  63. % endfor
  64. </div>
  65. % endif
  66. </%block>
  67. ${next.body()}
  68. </main>
  69. </div>
  70. </div>
  71. </%block>
  72. <%block name="footer">
  73. <footer class="styled-border">
  74. <div>
  75. <ul>
  76. <li>YC&nbsp;${g.eve.clock.now()}</li>
  77. <li>Running <a href="https://github.com/earwig/calefaction">Calefaction</a>&nbsp;${g.version}</li>
  78. <li><a href="https://eveonline.com">EVE&nbsp;Online</a> and all related trademarks are property of <a href="https://ccpgames.com">CCP&nbsp;hf</a>.</li>
  79. </ul>
  80. </div>
  81. </footer>
  82. </%block>
  83. </body>
  84. </html>