base.html 2.7 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970
  1. {% load static %}
  2. <!DOCTYPE html>
  3. <html lang="en">
  4. <head>
  5. <meta charset="utf-8">
  6. <title>
  7. {% if title %}{{ title }} {% endif %}
  8. {% if user.is_authenticated %} - {{ user.username }}@{% endif %}{{ settings.APPLICATION_NAME }}
  9. </title>
  10. <meta name="application-name" content="{{ settings.APPLICATION_NAME }}">
  11. <meta name="author" content="Double-Vee">
  12. <meta name="description" content="{{ description }}">
  13. <meta name="keywords" content="{{ keywords }}">
  14. <meta name="viewport" content="width=device-width, initial-scale=1.0">
  15. <link rel="icon" href="{% static "favicon-32x32.png" %}">
  16. <link rel="stylesheet" type="text/css" href="{% static "semantic.min.css" %}">
  17. <style>
  18. .main.container {
  19. padding-top: 5em;
  20. }
  21. body {
  22. background-image: url('{% static "website_background.png" %}');
  23. background-repeat: no-repeat;
  24. background-attachment: fixed;
  25. background-size: cover;
  26. }
  27. </style>
  28. <script src="{% static "jquery@3.3.1/dist/jquery.min.js" %}"></script>
  29. <script src="{% static "semantic.min.js" %}"></script>
  30. <!--script src="{% static "Chart.min.js" %}"></script-->
  31. </head>
  32. <body>
  33. <nav class="ui pointing top fixed inverted menu">
  34. <a class="item" href="% url 'index' %">
  35. <!--img src="{% static "favicon-32x32.png" %}" alt="{{ settings.APPLICATION_NAME }} logo"-->
  36. <i class="robot icon"></i>
  37. {{ settings.APPLICATION_NAME }}
  38. </a>
  39. {% if title %}
  40. {% if parent_title %}
  41. <a class="item" href="{{ parent_url }}"><i class="{{ parent_icon }} icon"></i>{{ parent_title }}</a>
  42. {% endif %}
  43. <a class="active item" href="{{ request.path }}">
  44. <i class="{{ icon }} icon"></i>
  45. {{ title }}</a>
  46. {% endif %}
  47. <div class="right menu">
  48. <div class="ui item">
  49. <a class="ui inverted primary labeled icon button" href="{{ settings.DISCORD_LINK }}">
  50. <i class="discord icon"></i>
  51. Discord
  52. </a>
  53. </div>
  54. {% if user.is_authenticated %}
  55. <!--a class="item" href="{ url 'core:logout' }?next={{ request.path }}"><i class="sign out alternate icon"></i>Log out</a-->
  56. {% else %}
  57. <!--a class="item" href="{ url 'core:login' }?next={{ request.path }}"><i class="sign in alternate icon"></i>Log in</a-->
  58. {% endif %}
  59. </div>
  60. </nav>
  61. <div class="ui main container">
  62. {% block content %}{% endblock content %}
  63. </div>
  64. <footer class="ui bottom fixed borderless menu">
  65. <nav class="ui breadcrumb item">
  66. {% block breadcrumbs %}{% endblock %}
  67. </nav>
  68. </footer>
  69. </body>
  70. </html>