base.html 3.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384
  1. {% load i18n static jazzmin admin_urls %}
  2. {% get_current_language as LANGUAGE_CODE %}
  3. {% get_current_language_bidi as LANGUAGE_BIDI %}
  4. {% get_jazzmin_settings request as jazzmin_settings %}
  5. {% get_jazzmin_ui_tweaks as jazzmin_ui %}
  6. <!DOCTYPE html>
  7. <html lang="{{ LANGUAGE_CODE|default:"en-us" }}" {% if LANGUAGE_BIDI %}dir="rtl"{% endif %}>
  8. <head>
  9. <meta charset="utf-8">
  10. <meta name="viewport" content="width=device-width, initial-scale=1">
  11. <meta http-equiv="x-ua-compatible" content="ie=edge">
  12. <title>{% block title %}{{ title }} | {{ jazzmin_settings.site_title }}{% endblock %}</title>
  13. <!-- Font Awesome Icons -->
  14. <link rel="stylesheet" href="{% static "vendor/fontawesome-free/css/all.min.css" %}">
  15. <!-- Bootstrap and adminLTE -->
  16. <link rel="stylesheet" href="{% static "vendor/adminlte/css/adminlte.min.css" %}">
  17. <!-- Bootswatch theme -->
  18. {% if jazzmin_ui.theme.name != 'default' %}
  19. <link rel="stylesheet" href="{{ jazzmin_ui.theme.src }}" id="jazzmin-theme" />
  20. {% endif %}
  21. {% if jazzmin_ui.dark_mode_theme %}
  22. <link rel="stylesheet" href="{{ jazzmin_ui.dark_mode_theme.src }}" id="jazzmin-dark-mode-theme" media="(prefers-color-scheme: dark)"/>
  23. {% endif %}
  24. <!-- Custom fixes for django -->
  25. <link rel="stylesheet" href="{% static "jazzmin/css/main.css" %}">
  26. {% if jazzmin_settings.custom_css %}
  27. <!-- Custom CSS -->
  28. <link rel="stylesheet" href="{% static jazzmin_settings.custom_css %}">
  29. {% endif %}
  30. <!-- favicons -->
  31. <link rel="shortcut icon" href="{% static jazzmin_settings.site_icon %}" type="image/png">
  32. <link rel="icon" href="{% static jazzmin_settings.site_icon %}" sizes="32x32" type="image/png">
  33. {% if jazzmin_settings.use_google_fonts_cdn %}
  34. <!-- Google Font: Source Sans Pro -->
  35. <link href="https://fonts.googleapis.com/css?family=Source+Sans+Pro:300,400,400i,700" rel="stylesheet">
  36. {% endif %}
  37. {% block extrastyle %} {% endblock %}
  38. {% block extrahead %} {% endblock %}
  39. </head>
  40. <body class="hold-transition jazzmin-login-page">
  41. <div class="login-box">
  42. <div class="login-logo">
  43. <h1>
  44. <picture>
  45. <source
  46. srcset="{% static jazzmin_settings.login_logo_dark %}"
  47. media="(prefers-color-scheme: dark)">
  48. <img style="height: 150px;" src="{% static jazzmin_settings.login_logo %}" alt="{{ jazzmin_settings.site_header }}">
  49. </picture>
  50. </h1>
  51. </div>
  52. <div class="card">
  53. <div class="card-body">
  54. {% block content %} {% endblock %}
  55. </div>
  56. </div>
  57. </div>
  58. <!-- jQuery -->
  59. <script src="{% static "admin/js/vendor/jquery/jquery.js" %}"></script>
  60. <!-- Bootstrap 4 -->
  61. <script src="{% static 'vendor/bootstrap/js/bootstrap.min.js' %}"></script>
  62. <!-- AdminLTE App -->
  63. <script src="{% static 'vendor/adminlte/js/adminlte.min.js' %}"></script>
  64. {% if jazzmin_settings.custom_js %}
  65. <script src="{% static jazzmin_settings.custom_js %}"></script>
  66. {% endif %}
  67. </body>
  68. </html>