1
0

base.html 2.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869
  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.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 "logo.png" %}" alt="{{ settings.APPLICATION_NAME }} logo"-->
  36. {{ settings.APPLICATION_NAME }}
  37. </a>
  38. {% if title %}
  39. {% if parent_title %}
  40. <a class="item" href="{{ parent_url }}"><i class="{{ parent_icon }} icon"></i>{{ parent_title }}</a>
  41. {% endif %}
  42. <a class="active item" href="{{ request.path }}">
  43. <i class="{{ icon }} icon"></i>
  44. {{ title }}</a>
  45. {% endif %}
  46. <div class="right menu">
  47. <div class="ui item">
  48. <a class="ui inverted primary labeled icon button" href="{{ settings.DISCORD_LINK }}">
  49. <i class="discord icon"></i>
  50. Discord
  51. </a>
  52. </div>
  53. {% if user.is_authenticated %}
  54. <!--a class="item" href="{ url 'core:logout' }?next={{ request.path }}"><i class="sign out alternate icon"></i>Log out</a-->
  55. {% else %}
  56. <!--a class="item" href="{ url 'core:login' }?next={{ request.path }}"><i class="sign in alternate icon"></i>Log in</a-->
  57. {% endif %}
  58. </div>
  59. </nav>
  60. <div class="ui main container">
  61. {% block content %}{% endblock content %}
  62. </div>
  63. <footer class="ui bottom fixed borderless menu">
  64. <nav class="ui breadcrumb item">
  65. {% block breadcrumbs %}{% endblock %}
  66. </nav>
  67. </footer>
  68. </body>
  69. </html>