macros.html 1.1 KB

1234567891011121314151617181920212223242526272829303132
  1. {% macro form(to, domain, reply=False) %}
  2. <form action="mailto:{{ to }}@{{ domain }}" method="GET" class="submit">
  3. <a name="ReplyForm"></a>
  4. {% if reply %}
  5. <h5 class="form" > Reply </h5>
  6. {% else %}
  7. <h5 class="form" > Submit a bug </h5>
  8. <label for="subject">Subject: </label><input name="subject" type="text" /><br>
  9. {% endif %}
  10. <label for="body">Description of bug:</label><br><textarea name="body"></textarea><br>
  11. <input type="submit" value="Open mail program to submit bug report" />
  12. </form>
  13. {% endmacro %}
  14. {% macro h1(DOMAIN) %}
  15. <h1><a href="/"> <img class="logo" src="/hemiptera.png" alt="Hemiptera Logo" > Hemiptera Bugtracker at {{DOMAIN}}</a></h1>
  16. {% endmacro %}
  17. {% macro head() %}
  18. <meta charset="utf-8">
  19. <link rel="stylesheet" type="text/css" href="/styles.css" >
  20. <link rel="icon" type="image/png" href="/hemiptera.png"/>
  21. {% endmacro %}
  22. {% macro footer() %}
  23. <footer>
  24. <img class="logo" src="/hemiptera.png" alt="Hemiptera Logo" >Pages generated by Hemiptera.<br> Hemiptera is free software, licensed under AGPL v3. <a href="https://git.bananach.space/hemiptera.git" >Source code</a>
  25. </footer>
  26. {% endmacro %}